build_coords#
- causalpy.experiments.model_adapter.build_coords(coeffs, n_obs, *, treated_units=('unit_0',), **extra)[source]#
Build the standard PyMC coordinate dict for regression experiments.
- Parameters:
coeffs (
list[str] |tuple[str,...]) – Coefficient / predictor names for thecoeffscoord.n_obs (
int) – Number of observations; used to buildobs_indasnp.arange(n_obs).treated_units (
tuple[str,...] |list[str]) – Names for the treated-unit dimension ofy.**extra (
Any) – Additional coordinate entries merged into the result (e.g.datetime_indexfor ITS).
- Return type: