Stat Ancova
stat_ancovaCompare group means while controlling for a continuous covariate such as age or baseline score, and automatically test homogeneity of regression slopes to confirm ANCOVA is appropriate.
Instructions
ANCOVA — compare groups while statistically controlling a continuous covariate.
WHEN TO USE: a continuous variable is expected to influence the outcome and differs between groups (e.g. age, baseline score).
WHEN NOT TO USE — two conditions that are frequently violated:
The covariate was affected by the manipulation. Controlling a variable the treatment changed removes part of the effect you are measuring.
The covariate was measured after the outcome, or with substantial error.
The tool tests homogeneity of regression slopes automatically and tells you if ANCOVA is inappropriate.
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": {
"name": "<name>",
"dv": "<dv>",
"between": "<between>",
"covar": "<covar>"
},
"name": "stat_ancova"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dv | Yes | ||
| name | Yes | ||
| covar | Yes | ||
| between | Yes | ||
| effsize | No | np2 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |