.claude/skills/gMCPLite/SKILL.md
Guide users through graphical MCP procedures using the gMCPLite R package (legacy). Use this skill when the user asks about: hGraph for multiplicity graph visualization, gMCP for closed testing, or legacy graphical MCP workflows. For new projects, prefer graphicalMCP.
npx skillsauth add keaven/gsDesignSkills gMCPLiteInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
For new projects, prefer the graphicalMCP package which has a cleaner API.
references/llms.txt (built from local man pages)references/code_patterns.mdmatrix2graph() - Create graphMCP object from transition matrixgraphMCP class - Core graph representation (hypotheses, weights, transitions)joinGraphs() - Combine multiple graphssubgraph() - Extract subgraphgMCP() - Graphical MCP testing proceduregMCP.extended() - Extended testing with parametric testsgraphTest() - Test hypotheses on a graphhGraph() - Create multiplicity graph visualization (ggplot2-based)placeNodes() - Compute node positions for graph layoutbonferroni.test() - Bonferroni testbonferroni.trimmed.simes.test() - Bonferroni-trimmed Simes testparametric.test() - Parametric test using correlationsimes.test() - Simes testsimes.on.subsets.test() - Simes test on subsetsgenerateWeights() - Generate weights for intersection hypothesesgeneratePvals() - Generate p-values for simulationsimConfint() - Simultaneous confidence intervalsrejectNode() - Reject a hypothesis and update graphexampleGraphs() - Pre-built example graphscheckCorrelation() - Validate correlation matrixFor detailed code templates, read references/code_patterns.md.
Topics covered:
hGraph() (basic and custom)matrix2graph()gMCP()gMCP.extended() and custom test functionsgenerateWeights()rejectNode()simConfint()sequentialPValue())joinGraphs(), subgraph())graphicalMCP: It has a cleaner S3 API (graph_create, graph_test_shortcut, graph_test_closure) and is actively maintainedhGraph() remains widely used: Even with graphicalMCP for testing, hGraph() from gMCPLite is commonly used for visualization in publications and presentationsgsDesign::sequentialPValue() to convert nominal p-values from group sequential analyses into sequential p-values, then pass to gMCP() for multiplicity controlupscale = TRUE: Required for parametric tests (Bretz et al. 2011) to rescale subgraph weights to sum to 1correlation with NA: gMCPLite supports partially specified correlation matrices (NA for unknown entries)gMCP() returns gMCPResult: Access @rejected (logical), @adjPValues (adjusted p-values), and @graphs (sequence of updated graphs)testing
Guide users through weighted parametric group sequential design using the wpgsd R package. Use this skill when the user asks about: correlated test statistics across hypotheses, generate_bounds, closed_test, correlation matrices for nested populations, or parametric multiplicity adjustment with group sequential designs.
tools
Guide users through clinical trial simulation using the simtrial R package. Use this skill when the user asks about: simulating survival trials, simfix, sim_pw_surv, cutting data at calendar or event times, weighted logrank tests, MaxCombo tests, or simulation-based power.
tools
Guide users through confirmatory adaptive clinical trial design and analysis using the rpact R package. Use this skill when the user asks about: adaptive designs, sample size reassessment, conditional power, inverse normal combination test, Fisher combination test, multi-stage designs, or rpact design objects.
tools
Guide users through multi-endpoint group sequential trial simulation with multiplicity-controlled testing. Use this skill when the user asks about: simulating trials with OS, PFS, and ORR endpoints, illness-death model simulation with gsDesign bounds, sequential p-values in simulation loops, combining graphicalMCP with gsDesign for simulation-based operating characteristics, cumulative rejection probabilities, or building a full pipeline from design through simulation to multiplicity-adjusted testing.