cross_validate
Cross-check one estimand across independent engines and report AGREE, PARTIAL, DISAGREE, or INSUFFICIENT so estimates are trusted only when reproduced by two or more implementations.
Instructions
Cross-validate ONE estimand across INDEPENDENT engines (StatsPAI, pyfixest, linearmodels, DoubleML, R's fixest, Stata) and report whether they agree (AGREE / PARTIAL / DISAGREE / INSUFFICIENT). Use this to honour the cross-package reproducibility rule: trust a number only when >=2 independent implementations reproduce it. Needs a data_path.
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": {
"estimand": "<estimand>"
},
"name": "cross_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| g | No | DiD only: cohort / first-treatment period (0 = never treated). | |
| i | No | DiD only: unit-id column. | |
| t | No | DiD only: time column. | |
| y | No | Outcome column. | |
| vcov | No | ||
| endog | No | Endogenous regressors (IV). | |
| detail | No | Payload depth; agent is the fullest. | agent |
| data_id | No | Data handle (d_...) from load_data; replaces data_path. | |
| engines | No | Engines to run, e.g. ['statspai','R::fixest','pyfixest','Stata']. Omit for 'auto' (all installed + applicable). | |
| formula | No | fixest-style 'y ~ x | fe | endog ~ z'. | |
| data_csv | No | Small inline table as CSV text. | |
| estimand | Yes | Model family to fit in every engine. | |
| 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. | |
| treatment | No | Focal regressor (reconciled coefficient). | |
| covariates | No | ||
| instruments | No | ||
| data_records | No | Small inline table as row objects. | |
| fixed_effects | No | ||
| max_output_bytes | No | Result byte budget (default 262144; 0 = none). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||