correlation
Calculate correlation matrices with per-pair significance tests, confidence intervals, magnitude labels, multiple-comparison adjustment, and partial correlations.
Instructions
Correlations between numeric variables: a full matrix plus per-pair tests with n, r, p, confidence intervals and a magnitude label. Supports Pearson, Spearman and Kendall, multiple-comparison adjustment, and partial correlations - pass control to residualise one or more variables out of every pair first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Dataset name in the session. | |
| plots | No | Include a correlation heatmap. | |
| adjust | No | Multiple-comparison adjustment: none, holm, bonferroni, fdr, BH. | none |
| digits | No | Decimal places. | |
| method | No | pearson, spearman or kendall. | pearson |
| control | No | Variables to partial out, giving partial correlations. | |
| variables | No | Numeric columns to correlate (default: all numeric). | |
| conf_level | No | Confidence level. | |
| correlate_with | No | Correlate every other variable against just these columns, instead of every pair. |