An R package for estimating causal effects in time series using Bayesian structural time-series models.
CausalImpact is an R package for estimating the causal effect of an intervention on a time series using Bayesian structural time-series models. It helps answer questions like how many additional daily clicks were generated by an advertising campaign when randomized experiments are not available. The package models how the response metric might have evolved without the intervention, providing data-driven insights for decision-making.
Data scientists, statisticians, and analysts working in marketing, policy evaluation, or business intelligence who need to estimate causal effects from observational time-series data.
Developers choose CausalImpact for its robust Bayesian methodology, ability to handle non-experimental data, and comprehensive output that includes uncertainty quantification. It is backed by Google research and offers a principled approach to causal inference in time series.
An R package for causal inference in time series
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses Bayesian structural time-series models to estimate counterfactual outcomes with built-in uncertainty quantification, as highlighted in the key features for robust inference.
Integrates unaffected control time series to improve accuracy, a core method that leverages external data for better predictions.
Provides comprehensive results including pointwise estimates and cumulative effects, making it easier to interpret and communicate findings.
Emphasizes validating critical assumptions about stability, ensuring users understand limitations, as stated in the philosophy.
Validity hinges on control series being unaffected and relationships stable, which can be hard to verify and often fails in messy real-world data.
Primarily an R package; Python users must use a separate implementation (TFP CausalImpact) that may produce differing results, limiting cross-platform consistency.
Bayesian models can be slow for large time series or complex control sets, potentially hindering iterative analysis or large-scale applications.