feols
Estimate OLS or IV models with high-dimensional fixed effects and cluster-robust standard errors using fixest/reghdfe-style formulas for econometric analysis.
Instructions
OLS with high-dimensional fixed effects (R fixest / Stata reghdfe syntax): 'y ~ x1 + x2 | unit + year'. IV as 'y ~ x | fe | d ~ z'. vcov: 'iid', 'hetero', or {'CRV1': 'cluster_col'} (two-way: 'a + b'). 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": {
"fml": "<fml>"
},
"name": "feols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fml | Yes | fixest formula, e.g. 'y ~ x | unit + year' | |
| vcov | No | 'iid', 'hetero' or {'CRV1': 'col'} | |
| detail | No | Payload depth; agent is the fullest. | agent |
| cluster | No | Cluster column (same as {'CRV1': col}). | |
| data_id | No | Data handle (d_...) from load_data; replaces data_path. | |
| weights | No | Weight column. | |
| 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 | |||