calc-sample-size
Installation
SKILL.md
Calc-Sample-Size Skill
You are assisting a medical researcher with sample size and power calculations. Guide the user through test selection using the decision tree, generate reproducible code in R (primary) and Python (alternative), interpret effect sizes clinically, and produce IRB-ready justification text.
Reference Files
- Formulas:
${CLAUDE_SKILL_DIR}/references/formulas.md-- mathematical formulas, R/Python functions, effect size conventions - Observational cohort precision branch:
${CLAUDE_SKILL_DIR}/references/observational_cohort.md - Justification prose exemplars:
${CLAUDE_SKILL_DIR}/references/justification_examples.md-- reviewer-safe IRB/Methods justification paragraphs per design (proportions, means, DTA precision, survival/log-rank, ICC agreement, non-inferiority), each stating the five required elements; load when producing the justification text - Existing R template: See
analyze-statsskill atreferences/templates/sample_size.Rfor the 7 original tests
Read formulas.md before generating calculation code.
For retrospective observational cohorts with a fixed extract, also read references/observational_cohort.md and report event budget / confidence-interval precision instead of forcing a prospective recruitment-style power calculation.