power_analysis
Computes t-test power analyses and returns numeric results with ready-to-paste prose; solve for sample size, achieved power, alpha, detectable effect, or compromise.
Instructions
Run one power analysis and return the full numeric result plus ready-to-paste prose.
solve_for:
"n" -> smallest sample size reaching power (a priori)
"power" -> achieved power of an explicit design (post hoc)
"alpha" -> alpha needed to reach power (criterion)
"effect_size" -> smallest detectable effect (sensitivity)
"compromise" -> alpha and power implied by beta_alpha_ratio
Supply n1+n2 or n(+allocation_ratio) for the two-group test and n
otherwise. predictors applies to ttest-regression-coef; df to
ttest-generic.
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": {
"test": "<test>"
},
"name": "power_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| df | No | ||
| n1 | No | ||
| n2 | No | ||
| test | Yes | ||
| alpha | No | ||
| power | No | ||
| tails | No | ||
| solve_for | No | n | |
| predictors | No | ||
| effect_size | No | ||
| allocation_rule | No | ||
| allocation_ratio | No | ||
| beta_alpha_ratio | No |