Estimate a model and return a coefficient table
stata_modelRun a single Stata estimation command and return structured coefficients, standard errors, p-values, and fit statistics instead of parsing transcript tables.
Instructions
Run one estimation command (e.g. "regress price mpg weight" or "xtreg y x, fe vce(cluster id)") and return a structured coefficient table — b, se, t/z, two-sided p per term — plus fit statistics. Use this instead of reading a regression table out of the transcript.
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": {
"command": "<command>"
},
"name": "stata_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory. | |
| quiet | No | Suppress the estimation output in the transcript (default false). | |
| command | Yes | Exactly one Stata estimation command. | |
| timeout | No | Seconds (default 300). |