/CausalImpact

An R package for causal inference in time series

Primary LanguageRApache License 2.0Apache-2.0

CausalImpact

An R package for causal inference using Bayesian structural time-series models

This R package implements an approach to estimating the causal effect of a designed intervention on a time series. For example, how many additional daily clicks were generated by an advertising campaign? Answering a question like this can be difficult when a randomized experiment is not available. The package overcomes this difficulty using a structural Bayesian time-series model to estimate how the response metric would have evolved after the intervention if the intervention had not occurred.

Installation

install.packages("devtools")
library(devtools)
devtools::install_github("google/CausalImpact")
library(CausalImpact)

Getting started

Documentation and examples

Further resources