Last active
January 16, 2016 22:18
-
-
Save bjpcjp/9a1ca9c46bbc37217af7 to your computer and use it in GitHub Desktop.
CausalImpact using R
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: http://multithreaded.stitchfix.com/blog/2016/01/13/market-watch/ | |
# https://github.com/klarsen1/MarketMatching | |
# from terminal command line: | |
sudo apt-get install libcurl4-openssl-dev | |
# from R command line: | |
# install CausalImpact package: | |
install.packages("devtools") | |
library(devtools) | |
devtools::install_github("google/CausalImpact") | |
library(CausalImpact) | |
# install dtw package: | |
install.packages("dtw") | |
# install MarketMatching package | |
library(devtools) | |
install_github("google/CausalImpact") | |
install_github("klarsen1/MarketMatching", build_vignettes=TRUE) | |
# two key techniques needed to do intervention analysis: dynamic time warping and Bayesian structural time series models. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment