View source: R/summary_function.R
effSummary | R Documentation |
Summarize the posterior distribution for treatment effects
effSummary(x,
usr.id = NULL,
burn = 0,
cumu = FALSE, ## whether to calculate cumulative effect
rela.period = TRUE) ## aggregate by time relative to treatment)
x |
a |
usr.id |
a scalar or character indicating the treated unit for which the treatment
effect is summarized if user is interested in individual effect. If left blank
( |
burn |
an integer specifying the length of burn in iterations of (remaining) MCMC run. Default is 0. |
cumu |
a logical flag indicating whether to calculate cumulative effects. |
rela.period |
a logical flag indicating whether to average treatment effect by time relative to treatment. |
est.eff |
posterior means and credible intervals for treatment effect in each period. |
est.avg |
posterior means and credible intervals for average treatment effect. |
est.cumu |
posterior means and credible intervals for cumulative treatment effect. |
A Bayesian Alternative to Synthetic Control for Comparative Case Studies. Pang et. al (2021).
bpCausal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.