Stat Normality Test
stat_normality_testTest whether a variable is normally distributed, optionally per group, to check the normality assumption before running parametric tests like t-tests, ANOVA, or Pearson correlation.
Instructions
Test whether a variable is normally distributed, optionally within each group.
When to use: before any parametric test (t-test, ANOVA, Pearson correlation). When NOT to use: as a gatekeeper that alone decides parametric vs non-parametric. With large n the test detects trivial deviations; with small n it has low power. Judge with the QQ plot and skewness too.
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_normality_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dv | Yes | The variable to test. | |
| name | Yes | Session dataset name. | |
| group | No | Optional grouping column — normality is then tested per group. | |
| method | No | shapiro (default, best for n < 50) | normaltest | jarque_bera | omni. | shapiro |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |