Stat Partial Correlation
stat_partial_correlationCalculates the partial correlation between two variables while controlling for covariates, revealing their association net of those factors.
Instructions
Partial correlation — association between two variables after removing covariates.
WHEN TO USE: a third variable plausibly drives both x and y, and you want the association net of it.
WHEN NOT TO USE: as a substitute for modelling. If several covariates are involved, regression gives a clearer picture. Partial correlation also assumes the covariate is measured without error.
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>",
"x": "<x>",
"y": "<y>",
"covar": "<covar>"
},
"name": "stat_partial_correlation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| name | Yes | ||
| covar | Yes | ||
| method | No | pearson |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |