Thank you Dr. Brodersen for answering my query.
I was wondering whether we could combine and show the effect of Campaign compared to pre campaign period and then again effect of ending the campaign against the campaign period. Please suggest.
Here is the simulated excel data file (in a crude way) from which csv file is created. Pre campaign period is "2011-1-1" to "2012-5-31, campaign period is "2012-6-1" to "2012-09-30" and "2012-10-1" to "2013-04-30" is again without campaign. I have created two plots
1. Effect of campaign against pre campaign period
2. Effect of ending campaign against campaign period
camp <- read.csv("Campaign_Simulated.csv",header=TRUE,sep=",")
data <- cbind(camp$Date,camp$Overall)
data <- as.data.frame(data)
names(data) <- c("Date","Click")
data$Date <- as.Date(data$Date)
data <- zoo(data$Click, data$Date)
pre.period <- as.Date(c("2011-1-1","2012-5-31"))
post.period <- as.Date(c("2012-6-1","2012-09-30"))
impact <- CausalImpact(data, pre.period, post.period, model.args=list(niter = 1e4),alpha=0.05)
plot(impact) + theme_bw(base_size = 9)
pre.period <- as.Date(c("2012-6-1","2012-9-30"))
post.period <- as.Date(c("2012-10-1","2013-04-30"))
impact <- CausalImpact(data, pre.period, post.period, model.args=list(niter = 1e4),alpha=0.05)
plot(impact) + theme_bw(base_size = 9)