InterruptedTimeSeries#
- class causalpy.pymc_experiments.InterruptedTimeSeries[source]#
A wrapper around 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
InterruptedTimeSeries.__init__(data, ...[, ...])InterruptedTimeSeries.plot([...])Plot the results
Prints the model coefficients
InterruptedTimeSeries.summary([round_to])Print text output summarising the results
Attributes
expt_typeidataAccess to the models InferenceData object
model- __init__(data, treatment_time, formula, validation_time=None, model=None, **kwargs)#
- __new__(*args, **kwargs)#