.claude/skills/graphicalMCP/SKILL.md
Guide users through graphical multiple comparison procedures using the graphicalMCP R package. Use this skill when the user asks about: multiplicity graphs, Bonferroni-based procedures, graph_create, graph_test_shortcut, graph_update, transition matrices, alpha reallocation, or closed testing with graphs.
npx skillsauth add keaven/gsDesignSkills graphicalMCPInstall 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.
references/llms.txt (source: https://openpharma.github.io/graphicalMCP/)references/code_patterns.mdgraph_create() - Create a multiplicity graph (hypotheses, weights, transitions)graph_update() - Update graph by deleting rejected hypothesesas_graph() - Convert from gMCP, igraph, or matrix objectsgraph_test_shortcut() - Shortcut (Bonferroni-based) graphical testinggraph_test_closure() - Full closure-based testing (supports Simes, parametric)graph_rejection_orderings() - Enumerate all valid rejection orderingsadjust_p() - Adjusted p-values (Bonferroni, Simes, parametric)adjust_weights() - Adjusted significance levels (Bonferroni, Simes, parametric)graph_generate_weights() - Generate weights for all intersection hypothesesgraph_calculate_power() - Power simulation via multivariate normalplot.initial_graph() - Plot multiplicity graphplot.updated_graph() - Plot updated graph sequenceexample_graphs() - Pre-built example graphs (Bonferroni-Holm, fixed sequence, etc.)For detailed code templates, read references/code_patterns.md.
Topics covered:
graph_create() (weights, transitions)graph_test_shortcut()graph_test_closure() (Simes, parametric, Hochberg, mixed)graph_update()graph_generate_weights()graph_rejection_orderings()graph_calculate_power() (marginal power, correlation)graph_test_shortcut() vs graph_test_closure(): Shortcut is Bonferroni-only and faster; closure supports Simes, parametric, and Hochberg tests for more powertest_corr between test statistics; most powerful when correlation is hightest_groups and test_types: Allow different test types for different groups of hypotheses (e.g., parametric for co-primary, Simes for secondary)test_corr: Must match test_types in length; use NA for non-parametric tests (Bonferroni, Simes, Hochberg)sim_corr vs test_corr: sim_corr is for generating correlated p-values in power simulation; test_corr is the known correlation used in the parametric test itselfpower_marginal: Marginal power for each hypothesis at full alpha (not at allocated alpha); higher values = stronger signalsequential_pval() from gsDesign2 to get p-values for group sequential hypotheses, then pass to graph_test_shortcut() for multiplicity controltesting
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.