stats.chisq_test
Pearson's chi-squared test of independence between two categorical columns.
- Kind:
standard - Network: no
| Name | Type | Description |
|---|
data | file (CSV) | Input table containing the two categorical columns. |
column | string | Name of the first categorical column. |
by | string | Name of the second categorical column to test for independence against the first. |
correct | boolean | Whether to apply Yates' continuity correction (only affects 2x2 tables). Defaults to true. |
Outputs🔗
| Name | Type | Description |
|---|
result | json | Test results - chi-squared statistic, degrees of freedom, p-value, and the observed contingency table. |
Example🔗
- id: 01890000-0000-0000-0000-000000000404
name: stats.chisq_test
inputs:
- 01890000-0000-0000-0000-000000000000
args:
column: "ownership"
by: "forest_type"
correct: true