BaseExperiment#
- class causalpy.experiments.base.BaseExperiment[source]#
Base class for quasi experimental designs.
Methods
BaseExperiment.__init__([model])BaseExperiment.fit(*args, **kwargs)BaseExperiment.get_plot_data(*args, **kwargs)Recover the data of an experiment along with the prediction and causal impact information.
BaseExperiment.get_plot_data_bayesian(*args, ...)Abstract method for recovering plot data.
BaseExperiment.get_plot_data_ols(*args, **kwargs)Abstract method for recovering plot data.
BaseExperiment.plot(*args, **kwargs)Plot the model.
BaseExperiment.print_coefficients([round_to])Ask the model to print its coefficients.
Attributes
idataReturn the InferenceData object of the model.
labelssupports_bayessupports_ols- __init__(model=None)[source]#
- Parameters:
model (PyMCModel | RegressorMixin | None)
- Return type:
None
- classmethod __new__(*args, **kwargs)#