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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"comparison": "<comparison>",
"effect_size": "<effect_size>"
},
"name": "plan_sample_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | ||
| power | No | ||
| two_sided | No | ||
| comparison | Yes | ||
| effect_size | Yes |