Stat Logistic Regression
stat_logistic_regressionUse binary logistic regression to model yes/no outcomes from one or more predictors and report odds ratios with confidence intervals.
Instructions
Binary logistic regression with odds ratios and confidence intervals.
WHEN TO USE: a binary outcome (yes/no, present/absent) predicted from one or more variables.
WHEN NOT TO USE:
Continuous outcome →
stat_linear_regression.Ordinal outcome with 3+ levels → an ordinal model, not this.
Rare events (fewer than ~10 outcomes per predictor) → the estimates are biased; use penalised regression (Firth).
An odds ratio is not a risk ratio: for common outcomes it exaggerates the effect. Report predicted probabilities alongside when the substantive question is about risk.
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_logistic_regression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| name | Yes | ||
| alpha | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |