honest_did
Computes honest confidence intervals for event-study/DID estimates under parallel-trends violations, using a fitted result and smoothness or relative-magnitude restrictions.
Instructions
Rambachan-Roth (2023) 'honest' DID sensitivity analysis. Operates on a fitted event-study / DID result: pass result_id from a prior sp.event_study / sp.callaway_santanna / sp.did_imputation / sp.sun_abraham fit run with as_handle=true (or use the honest_did_from_result tool, which auto-extracts the event-study coefficients). Returns honest confidence intervals under varying degrees of parallel-trends violation (smoothness or relative-magnitude restrictions). Call this when a pre-trend test rejects at low power instead of abandoning the design. Validation: certified parity evidence.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "honest_did"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| e | No | Event-time period (post-treatment horizon) to build the honest CI for. | |
| alpha | No | Significance level for the honest CI. | |
| detail | No | Payload depth; agent is the fullest. | agent |
| m_grid | No | Grid of M bounds on the parallel-trends violation to sweep. | |
| method | No | Restriction family: 'smoothness' (second differences) or 'relative_magnitude'. | smoothness |
| 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. | |
| 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 | |||