Skip to content

Separate InterruptedTimeSeries and SyntheticControl classes, update uml #458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion causalpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
from .data import load_data
from .experiments.diff_in_diff import DifferenceInDifferences
from .experiments.instrumental_variable import InstrumentalVariable
from .experiments.interrupted_time_series import InterruptedTimeSeries
from .experiments.inverse_propensity_weighting import InversePropensityWeighting
from .experiments.prepostfit import InterruptedTimeSeries, SyntheticControl
from .experiments.prepostnegd import PrePostNEGD
from .experiments.regression_discontinuity import RegressionDiscontinuity
from .experiments.regression_kink import RegressionKink
from .experiments.synthetic_control import SyntheticControl

az.style.use("arviz-darkgrid")

Expand Down
2 changes: 1 addition & 1 deletion causalpy/experiments/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _ols_plot(self, *args, **kwargs):
raise NotImplementedError("_ols_plot method not yet implemented")

def get_plot_data(self, *args, **kwargs) -> pd.DataFrame:
"""Recover the data of a PrePostFit experiment along with the prediction and causal impact information.
"""Recover the data of an experiment along with the prediction and causal impact information.

Internally, this function dispatches to either :func:`get_plot_data_bayesian` or :func:`get_plot_data_ols`
depending on the model type.
Expand Down
Loading