merton.cli.commands.fit

merton fit — fit a single firm or a panel from a CSV/Parquet input.

Attributes

Functions

run(, method, out, n_jobs, horizon)

Fit a single firm (one-row CSV) or a panel (Parquet / multi-row CSV).

Module Contents

merton.cli.commands.fit.console[source]
merton.cli.commands.fit.run(input_path: pathlib.Path = typer.Argument(..., exists=True, readable=True, help='Input file. CSV (single row single-firm) or Parquet (panel).'), method: str = typer.Option('vassalou_xing', '--method', '-m', help='Calibration method: vassalou_xing, jmr_iterative, naive, kmv_iterative, duan_mle.'), out: pathlib.Path | None = typer.Option(None, '--out', '-o', help='Output file (.csv, .parquet, .xlsx, .json). If omitted, prints summary to stdout.'), n_jobs: int = typer.Option(-1, '--n-jobs', '-j', help='joblib n_jobs for panel mode.'), horizon: float = typer.Option(1.0, '--horizon', '-T', help='Horizon in years.')) None[source]

Fit a single firm (one-row CSV) or a panel (Parquet / multi-row CSV).