calc-sample-size

Compute sample size and power for medical research study designs.

243|60|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/Aperivue/medsci-skills --skill calc-sample-size
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: calc-sample-size
Source: https://github.com/Aperivue/medsci-skills/tree/main/skills/calc-sample-size
Command: npx skills add https://github.com/Aperivue/medsci-skills --skill calc-sample-size

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Calc-Sample-Size helps researchers estimate and justify the number of participants and study power for medical research using an interactive decision-tree workflow, bridging methodological planning with reproducible code.

Core Features & Use Cases

  • Interactive decision-tree selection to choose the appropriate sample size test across common study designs.
  • Generates reproducible R and Python code templates for the selected test.
  • Provides IRB-ready justification text and a structured report to support study proposals and ethics submissions.

Quick Start

Provide your study design details to begin the interactive calculation and code generation.

Frequently Asked Questions about calc-sample-size

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate sample size for a medical research study using an interactive decision tree?

Sample size for medical research is calculated via an interactive decision-tree workflow that prompts for input parameters, applies statistical formulas, and outputs reproducible R and Python code with an IRB-ready justification document.

What study designs does power analysis support for diagnostic accuracy and survival outcomes?

Power analysis supports diagnostic accuracy, agreement, proportions, continuous outcomes, survival, ANOVA, logistic regression, and non-inferiority or equivalence designs across prospective studies and retrospective chart reviews.

Can I generate IRB-ready justification text for a prospective study proposal?

Yes, IRB-ready justification text is generated alongside a structured report to support study proposals and ethics submissions, bridging methodological planning with reproducible R and Python code templates.

How do I compute non-inferiority and equivalence sample size requirements in R and Python?

Non-inferiority and equivalence sample size requirements are computed using formulas from a references file, then output as reproducible R and Python code templates for direct implementation in biostatistics workflows.

Do I need prior biostatistics knowledge to use the interactive sample size calculator?

No advanced biostatistics prerequisite is required; the interactive decision-tree workflow prompts for study design input parameters, guiding users through selection of the appropriate sample size test and generating reproducible code automatically.

What's the best way to estimate sample size for a retrospective chart review?

Estimating sample size for a retrospective chart review uses the interactive decision-tree workflow to select the appropriate test, prompt for parameters, and generate reproducible R and Python code plus an IRB-ready justification document.