Stat Pairwise Tests
stat_pairwise_testsRun pairwise comparisons after ANOVA to identify which groups differ, with optional multiple-comparison correction to control false positives.
Instructions
Pairwise comparisons with optional multiple-comparison correction.
WHEN TO USE
After a significant ANOVA / RM-ANOVA / mixed ANOVA, to identify which pairs differ.
For planned pairwise comparisons, including for main effects and interactions.
WHEN NOT TO USE: as an exploratory scan of every possible pair without a correction — that is p-hacking.
Set padjust to control the error rate. Reporting only the significant pairs
from an uncorrected set is the most common mistake in post-hoc reporting; the
tool warns when padjust='none' with multiple comparisons.
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>"
},
"name": "stat_pairwise_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dv | Yes | ||
| name | Yes | ||
| alpha | No | ||
| within | No | ||
| between | No | ||
| effsize | No | hedges (default) | cohen | r. | hedges |
| padjust | No | none | bonf | sidak | holm | fdr_bh | fdr_by. Use 'fdr_bh' for many exploratory comparisons, 'holm' for a few planned ones. | none |
| subject | No | ||
| parametric | No | True for t-based tests, False for Mann-Whitney/Wilcoxon pairs. | |
| interaction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |