SyntheticControl#
- class causalpy.pymc_experiments.SyntheticControl[source]#
A wrapper around the PrePostFit class
- Parameters:
data (
DataFrame
) – A pandas dataframetreatment_time (
Union
[int
,float
,Timestamp
]) – The time when treatment occured, should be in reference to the data indexformula (
str
) – A statistical model formulavalidation_time – Optional time to split the data into training and validation data sets
model – A PyMC model
Methods
SyntheticControl.__init__
(data, ...[, ...])SyntheticControl.plot
([plot_predictors])Plot the results
SyntheticControl.print_coefficients
([round_to])Prints the model coefficients
SyntheticControl.summary
([round_to])Print text output summarising the results
Attributes
expt_type
idata
Access to the models InferenceData object
model
- __init__(data, treatment_time, formula, validation_time=None, model=None, **kwargs)#
- __new__(*args, **kwargs)#