synth_to_latex
Convert synthetic-control results into a formatted LaTeX table with confidence intervals, weights, and optional diagnostics for reproducible audit traces.
Instructions
Formatted LaTeX table for synthetic-control results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| obj | Yes | Object to render. ``SynthComparison`` and lists trigger the side-by-side multi-method layout. | |
| label | No | LaTeX label for cross-referencing. Defaults to ``"tab:synth"`` (single) or ``"tab:synth_compare"`` (multi). | |
| detail | No | Payload depth: 'minimal' (~150 tokens) for sub-step calls where only the point estimate is needed; 'standard' (~1K tokens) for diagnostics + coefficient table; 'agent' (~2K tokens, default) adds violations / next_steps / suggested_functions so the LLM can plan its next call without another round-trip. | agent |
| digits | No | Number of decimal places. | |
| caption | No | Table caption. Defaults to a sensible auto-generated string. | |
| show_ci | No | Include the confidence-interval row. | |
| booktabs | No | If True, use ``\toprule`` / ``\midrule`` / ``\bottomrule`` (requires ``\usepackage{booktabs}``). Falls back to ``\hline`` if False. | |
| as_handle | No | If true, cache the fitted result on the server and return result_id + result_uri alongside the JSON payload so a subsequent tools/call can chain without re-running. | |
| data_path | No | Absolute path or URL to a data file. Supported: .csv / .tsv / .txt (delimited), .parquet / .pq, .feather / .arrow, .xlsx / .xls, .dta (Stata), .json / .jsonl. Schemes: file://, s3://, gs://, https://. | |
| result_id | No | Optional handle to a previously-fitted result (returned by an earlier call when as_handle=true). Tools that operate on a fitted object accept this in place of re-supplying data_path + columns. | |
| data_columns | No | Optional column projection. Parquet/Feather/Stata loaders honour this for fast partial reads. | |
| method_names | No | Override column labels in comparison mode. | |
| show_weights | No | Append a panel listing the top-N donor weights. | |
| data_sample_n | No | Optional uniform random subsample size (seed=0, deterministic) — useful on huge panels. | |
| top_n_weights | No | How many donors to show per method when ``show_weights=True``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||