bpCausal-package | R Documentation |
The package provides functions for estimating and making inference of treatment effects from time-series cross-sectional data with the Bayesian dynamic multilevel latent factor models.
The package provides functions for estimating and making inference of treatment effects from time-series cross-sectional data with the Bayesian dynamic multilevel latent factor models. Hierarchical shrinkage priors can be assigned for variable selection and determining the number of factors. It can accommodate both balanced and unbalanced panel data.
Licheng Liu; Xun Pang; Yiqing Xu
Maintainer: Licheng Liu
A Bayesian Alternative to Synthetic Control for Comparative Case Studies. Pang et. al (2021).
library(bpCausal)
data(bpCausal)
out <- bpCausal(data = simdata, index = c("id", "time"),
Yname = "Y", Dname = "D",
Xname = c("X1", "X2"), Zname = NULL, Aname = c("X1", "X2"),
re = "time", r = 10, niter = 20000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.