plan_sample_size
Determine the minimum sample size required to achieve a target statistical power for two-sample, paired, proportion, or correlation tests using effect size and significance level.
Instructions
A priori power analysis: the required sample size for a target power.
effect_size is Cohen's d for two_means/paired_means, Cohen's h for two_proportions, and the correlation r for correlation. Uses a normal approximation — treat the result as a close lower bound and confirm exact numbers in G*Power for t-based tests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | ||
| power | No | ||
| two_sided | No | ||
| comparison | Yes | ||
| effect_size | Yes |