SyntheticControl#
- class causalpy.skl_experiments.SyntheticControl[source]#
A wrapper around the PrePostFit class
- Parameters:
data – A pandas data frame
treatment_time – The index or time value of when treatment begins
formula – A statistical model formula
model – An sklearn model object
Methods
SyntheticControl.__init__(data, ...[, model])Returns model coefficients
SyntheticControl.plot([plot_predictors, ...])Plot the results
Plots coefficient bar plot
SyntheticControl.print_coefficients([round_to])Prints the model coefficients
SyntheticControl.summary([round_to])Print text output summarising the results
Attributes
expt_typemodeloutcome_variable_name- __init__(data, treatment_time, formula, model=None, **kwargs)#
- __new__(*args, **kwargs)#