Mark Edmondson
June 17th, 2015
If you report…
…and you are not considering:
Google SEO mobile update April 22nd
Significant effect found of +12% SEO traffic
Eurovision Denmark announced 18th May, 2013 - did it affect a Danish travel website?
Non-signficant effect found of +7% (95% confidence interval crosses 0)
An R package developed by Kay Brodersen at Google
Constructs a time-series model before and after a set event, which is then compared to what actually happened.
The difference between the two is attributed to the event - can A/B test between model and reality.
Managed hosting of Shiny apps - www.shinyapps.io
Alternative to running your own Shiny server.
Deploy from within RStudio.
Free tier available.
My first public R package!
Aims to make the Google Authentication of GA Effect available to any Shiny app, provides macros for quick(er) start apps.
Ambition to use for all Google APIs, not just Google Analytics.
## install shinyga
library(shinyga)
## in sever.r generate GA profile table and auth token
auth <- doAuthMacro(input, output, session, securityCode, client.id, client.secret)
##in ui.r use these to authenticate user
uiOutput("AuthGAURL")
authDropdownRow()
Popular javascript time-series plotting library adapted for R:
Uses new htmlwidgets() R package to bind any javascript viz library (d3 etc.) to Shiny R code.
Constructs model from three sources:
Traditional “difference in difference”“ approach assumes same trend.
CausalImpacts state-space model allows flexible choices in which trend between each data point - allows examination of model trend.
Performs on model parameter combinations using Markov chain Monte Carlo method (default 1000 runs)
Spike-and-slab feature selection used to find best predictors.
Example from paper shows response (Y) and two predictor variables (X1, X2)