Sample size & power / 样本量计算(设计口径)
sample_size_calculatorSample size & power / 样本量计算(设计口径) | USE WHEN: calculate how many subjects are needed (two means / two proportions / correlation / survival), or solve for power | ALIASES: 样本量, 要做多少例, 需要多少病人, sample size, power calculation, 把握度, 最少例数, n per group | RETURNS: 每组例数与合计
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sd": 6,
"alpha": 0.05,
"power": 0.8,
"effect": 3,
"dropout": 0.1,
"sample_type": "两组均数"
},
"name": "sample_size_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sd | No | 标准差 | |
| alpha | No | 显著性水平,默认 0.05 | |
| power | No | 把握度,默认 0.8 | |
| effect | No | 预期效应量/差值 | |
| dropout | No | 脱落率 | |
| sample_type | No | 计算类型:两组均数/两组率/相关/生存 |