effSummary: Summarize the posterior distribution for treatment effects

View source: R/summary_function.R

effSummaryR Documentation

Summarize the posterior distribution for treatment effects

Description

Summarize the posterior distribution for treatment effects

Usage

effSummary(x, 
                  usr.id = NULL,        
                  burn = 0, 
                  cumu = FALSE,          ## whether to calculate cumulative effect
                  rela.period = TRUE)   ## aggregate by time relative to treatment)
      

Arguments

x

a bpCausal object.

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 (NULL), all treated units will be used.

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.

Value

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.

References

A Bayesian Alternative to Synthetic Control for Comparative Case Studies. Pang et. al (2021).

See Also

bpCausal


liulch/bpCausal documentation built on Jan. 16, 2024, 10:59 p.m.