glm
Fit generalized linear models from a formula and data table for Gaussian, binomial, Poisson, gamma, inverse Gaussian, or negative binomial regression.
Instructions
Fit a generalized linear model from a formula and a data table.
``family`` is one of gaussian, binomial, poisson, gamma, inverse_gaussian
or negativebinomial. ``data`` is either a ``{column: list}`` mapping or an
``"@<path>.csv"`` reference (relative paths resolve against ``output_dir()``).
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": {
"family": "<family>",
"formula": "<formula>",
"data": "<data>"
},
"name": "glm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| family | Yes | ||
| formula | Yes |