regress
Fit OLS regression models from R-style formulas for baseline specifications or covariate-adjusted RCT analyses, with classical, robust, or cluster-robust standard errors.
Instructions
Fit an OLS regression; classical SEs unless robust= or cluster=. Input is a Wilkinson-style formula like 'y ~ x1 + x2'. Use this for baseline specifications or covariate-adjusted RCT analyses. Validation: certified parity evidence.
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": {
"formula": "<formula>"
},
"name": "regress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Payload depth; agent is the fullest. | agent |
| robust | No | nonrobust | |
| cluster | No | Column name for cluster-robust SEs. | |
| data_id | No | Data handle (d_...) from load_data; replaces data_path. | |
| formula | Yes | R-style formula, e.g. 'y ~ x1 + x2' | |
| data_csv | No | Small inline table as CSV text. | |
| as_handle | No | Cache the fit and return its result_id. | |
| data_path | No | Absolute path of a data file on the server. | |
| result_id | No | Handle of an earlier fit made with as_handle=true. | |
| data_records | No | Small inline table as row objects. | |
| max_output_bytes | No | Result byte budget (default 262144; 0 = none). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||