Stat Correlation Matrix
stat_correlation_matrixCompute a correlation matrix across several variables with optional p-value correction for exploratory screening or paper-ready correlation tables.
Instructions
Correlation matrix across several variables, optionally with p-value correction.
WHEN TO USE: exploratory screening across a set of variables, or a correlation table for a paper.
WHEN NOT TO USE: as a basis for causal claims, or when the number of variables is large relative to n — correlations become unstable.
With more than two variables, always pass padjust (e.g. "fdr_bh"). A matrix
of 10 variables implies 45 comparisons; several will be significant by chance
alone.
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>",
"columns": "<columns>"
},
"name": "stat_correlation_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| method | No | pearson | |
| columns | Yes | ||
| padjust | No | ||
| decimals | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |