By choxos
Clinical trial simulation plugin supporting simtrial (time-to-event) and Mediana (CSE) frameworks for power analysis, sample size determination, group sequential designs, and multiplicity optimization
npx claudepluginhub choxos/biostatagent --plugin clinical-trial-simulationFull Clinical Scenario Evaluation workflow using Mediana framework.
Design group sequential trials with interim analyses, alpha spending, and futility stopping.
Optimize multiplicity adjustment selection including procedure choice and parameter tuning.
Calculate power for various clinical trial designs using simtrial or Mediana frameworks.
Determine sample sizes given power requirements using simulation-based optimization.
Reviews R code for clinical trial simulations. Validates simtrial and Mediana usage, checks statistical assumptions, ensures reproducibility.
Clinical Scenario Evaluation specialist using Mediana. Builds Data, Analysis, and Evaluation models for comprehensive trial simulations. Use PROACTIVELY for multi-scenario power analyses.
Group sequential design specialist. Handles interim analyses, alpha spending functions, futility stopping rules, and information fraction calculations.
Expert in multiple testing procedures and multiplicity adjustment optimization. Handles Holm, Hochberg, Hommel, chain procedures, and gatekeeping strategies for Type I error control.
Power and sample size optimization using direct and tradeoff-based strategies. Performs qualitative and quantitative sensitivity assessments.
Entry point for clinical trial simulation requests. Routes to appropriate specialists based on trial design (TTE, CSE, multiplicity, group sequential). Use PROACTIVELY for routing.
Time-to-event simulation specialist using simtrial. Handles piecewise exponential survival, weighted logrank tests, MaxCombo, RMST, and milestone analyses. Use PROACTIVELY for survival/TTE simulations.
Common clinical trial design patterns including multi-arm, multi-endpoint, adaptive, and stratified designs. Use when selecting or implementing trial designs.
Group sequential design methods for interim analyses, alpha spending, and futility stopping. Use when designing trials with interim looks or implementing spending functions.
Core Mediana package functions for Clinical Scenario Evaluation (CSE). Use when designing data models, analysis models, evaluation models, and running comprehensive trial simulations.
Multiple testing procedures reference for clinical trials. Use when selecting or implementing multiplicity adjustments, gatekeeping procedures, or graphical approaches.
Direct and tradeoff-based optimization strategies for clinical trial design. Use when optimizing sample size, selecting design parameters, or performing sensitivity analysis.
Core simtrial package functions for time-to-event clinical trial simulation. Use when generating survival data, performing weighted logrank tests, or running TTE simulations.
Survival analysis methods including weighted logrank, MaxCombo, RMST, and milestone tests. Use when analyzing TTE data or choosing analysis methods for non-proportional hazards.
Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.
Uses power tools
Uses Bash, Write, or Edit tools
Comprehensive Biostatistics Agent Ecosystem -- 30 specialized agents, 17 workflow commands, and 45 methodology skills for R-based statistical analysis
A unified Claude Code plugin marketplace consolidating four specialized biostatistics plugins:
| Plugin | Focus | Agents | Commands | Skills |
|---|---|---|---|---|
| bayesian-modeling | Bayesian inference (Stan, PyMC, JAGS) | 6 | 3 | 9 |
| itc-modeling | Indirect treatment comparisons | 7 | 2 | 6 |
| r-tidy-modeling | Tidy R workflows & biostatistics | 10 | 7 | 23 |
| clinical-trial-simulation | Clinical trial simulation | 7 | 5 | 7 |
| Total | 30 | 17 | 45 |
/plugin marketplace add choxos/BiostatAgent
Install all plugins or select specific ones:
# Install all
/plugin install bayesian-modeling itc-modeling r-tidy-modeling clinical-trial-simulation
# Or install individually
/plugin install bayesian-modeling
/plugin install itc-modeling
/plugin install r-tidy-modeling
/plugin install clinical-trial-simulation
# Core dependencies (install as needed)
install.packages(c(
# Bayesian modeling
"cmdstanr", "rstan", "R2jags", "R2WinBUGS", "bayesplot", "loo",
# ITC/NMA
"meta", "netmeta", "gemtc", "multinma", "maicplus",
# Tidy modeling
"tidyverse", "tidymodels", "recipes", "parsnip", "workflows",
# Clinical trials
"simtrial", "Mediana", "gsDesign2", "survival"
))
bayesian-modeling)Create, review, and validate Bayesian models across four languages:
Commands:
| Command | Description |
|---|---|
/create-model | Interactive model creation workflow |
/review-model | Review existing models for correctness |
/run-diagnostics | Test model execution with synthetic data |
Agents: model-architect, stan-specialist, pymc-specialist, bugs-specialist, model-reviewer, test-runner
Skills: stan-fundamentals, pymc-fundamentals, bugs-fundamentals, hierarchical-models, regression-models, time-series-models, survival-models, meta-analysis, model-diagnostics
itc-modeling)Expert agents for indirect treatment comparison following NICE DSU guidance:
Commands:
| Command | Description |
|---|---|
/itc-analysis | Full ITC workflow from method selection to results |
/itc-review | Review existing ITC code for methodological issues |
Agents: itc-architect, pairwise-meta-analyst, nma-specialist, maic-specialist, stc-specialist, ml-nmr-specialist, itc-code-reviewer
Skills: tidy-itc-workflow, pairwise-ma-methodology, nma-methodology, maic-methodology, stc-methodology, ml-nmr-methodology
r-tidy-modeling)Comprehensive R data science and biostatistics following tidyverse and tidymodels best practices:
Commands:
| Command | Description |
|---|---|
/r-analysis | End-to-end analysis workflow |
/r-code-review | Review R code for best practices |
/r-model-comparison | Compare multiple models |
/r-clinical-analysis | Clinical trial analysis workflow |
/r-project-setup | Set up reproducible R project |
/r-doc-generate | Generate documentation |
/r-tutorial-create | Create tutorials from code |
Agents: r-data-architect, tidymodels-engineer, feature-engineer, biostatistician, data-wrangler, viz-specialist, reporting-engineer, r-code-reviewer, r-docs-architect, r-tutorial-engineer
Skills (23):
Semantic search for Claude Code conversations. Remember past discussions, decisions, and patterns.
Comprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.