RegressionKink#
- class causalpy.experiments.regression_kink.RegressionKink[source]#
Regression Kink experiment class.
Methods
RegressionKink.__init__
(data, formula, ...)RegressionKink.get_plot_data
(*args, **kwargs)Recover the data of an experiment along with the prediction and causal impact information.
RegressionKink.get_plot_data_bayesian
(*args, ...)Abstract method for recovering plot data.
RegressionKink.get_plot_data_ols
(*args, **kwargs)Abstract method for recovering plot data.
Validate the input data and model formula for correctness
RegressionKink.plot
(*args, **kwargs)Plot the model.
RegressionKink.print_coefficients
([round_to])Ask the model to print its coefficients.
RegressionKink.summary
([round_to])Print summary of main results and model coefficients.
Attributes
idata
Return the InferenceData object of the model.
supports_bayes
supports_ols
- __init__(data, formula, kink_point, model=None, running_variable_name='x', epsilon=0.001, bandwidth=inf, **kwargs)[source]#
- classmethod __new__(*args, **kwargs)#