Posterior interval for aggregate impact

111 views
Skip to first unread message

AJ

unread,
Mar 11, 2015, 6:51:49 PM3/11/15
to causal...@googlegroups.com
Dear Kay,

Suppose you analyze multiple units using CausalImpact. How would you build a posterior interval for the sum of the impacts?

This is somewhat related to Nicolae's question on multi-level analysis, which CausalImpact doesn't support, but I don't care about fixed/random effects and just wonder if you can construct an interval without building a Gibbs sampler.

Thanks!
AJ

Kay Brodersen

unread,
Mar 14, 2015, 1:29:08 AM3/14/15
to AJ, causal...@googlegroups.com
Hi AJ,

One option would be to form the sum of the observed time series of your treated units, followed by a single CausalImpact analysis on this summed time series.

Another option would be to run individual analyses and then combine the results. Expectations are linear, so you can get the expected overall impact by simply adding up the individual impact series. To get the correct posterior intervals, you would add up the individual MCMC traces and then take, say, the 2.5th and 97.5th percentiles. For details on how to access the individual traces, see:


Best wishes,
Kay



--
You received this message because you are subscribed to the Google Groups "CausalImpact" group.
To unsubscribe from this group and stop receiving emails from it, send an email to causalimpact...@googlegroups.com.
To post to this group, send email to causal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/causalimpact/244d5904-2f71-4475-aed2-a6132bfe5f24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages