suggest_intervention_form
Add an intervention to a time series model, re-estimate it, and see the updated diagnosis. Use iteratively to refine the model.
Instructions
Add an intervention to the .inp, re-estimate and show updated diagnosis.
Adds a pulse, step or ramp intervention at the given date, saves to output_path, re-estimates and returns the updated parameter table and diagnosis. Use this iteratively — one intervention at a time.
Parameters
inp_path : current .inp/.pre (with any previous interventions) output_path : path to write the updated .inp date : observation date "MM/YYYY" or "QN/YYYY" or "YYYY". Leave empty ("") to auto-select the most extreme residual. form : "pulse", "step", "ramp" or "auto" (heuristic) context_hint : free-text note about the economic event (for logging) include_histogram : return histogram PNG (default False — saves tokens during the outlier cycle; set True for final round) guion_path : (optional) path to guion.json — records this version guion_name : version name (e.g. "PC3"); auto-assigned if empty guion_decision : brief description of what this model tests or concludes guion_rationale : justification for the intervention choice guion_problems : problems found in the diagnosis guion_next : description of the next version to try
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| form | No | auto | |
| inp_path | Yes | ||
| guion_name | No | ||
| guion_next | No | ||
| guion_path | No | ||
| output_path | Yes | ||
| context_hint | No | ||
| guion_decision | No | ||
| guion_problems | No | ||
| guion_rationale | No | ||
| include_histogram | No |