sdid
Estimate synthetic difference-in-differences treatment effects for one treated unit or block using unit and time weights. Compute placebo, bootstrap, or jackknife standard errors on long panel data.
Instructions
Synthetic difference-in-differences (Arkhangelsky et al. 2021): unit and time weights, one treated unit or block. Long panel; placebo / bootstrap / jackknife SEs. 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": {
"time": "<time>",
"unit": "<unit>",
"y": "<y>"
},
"name": "sdid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| y | Yes | Outcome column. | |
| seed | No | ||
| time | Yes | ||
| unit | Yes | ||
| treat | No | 0/1 treatment column (block designs). | |
| detail | No | Payload depth; agent is the fullest. | agent |
| data_id | No | Data handle (d_...) from load_data; replaces data_path. | |
| 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. | |
| se_method | No | 'noinference' needs treat=. | placebo |
| treat_time | No | First treated period. | |
| treat_unit | No | Treated unit value (or use treat=). | |
| 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 | |||