Stat Linear Regression
stat_linear_regressionFit ordinary least-squares regression to model continuous outcomes from predictors, returning coefficients, confidence intervals, and model fit statistics.
Instructions
Ordinary least-squares regression with coefficients, CIs and model fit.
WHEN TO USE: continuous outcome predicted from one or more continuous or dummy-coded predictors; or when adjusting for covariates in a continuous-outcome model.
WHEN NOT TO USE:
Binary outcome →
stat_logistic_regression.Repeated measures / clustered data → a mixed-effects model; OLS standard errors will be wrong.
Severe multicollinearity → address it before interpreting coefficients.
The output includes R² and adjusted R². Check the assumptions listed in the output before interpreting coefficients; a significant coefficient is not evidence of a causal effect.
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>",
"y": "<y>",
"x": "<x>"
},
"name": "stat_linear_regression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| name | Yes | ||
| alpha | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |