Description Usage Arguments Value
Use gsynth to fit factor model for E[Y(0)|X]
1 | fit_prog_gsynth(X, y, trt, r = 0, r.end = 5, force = 3, CV = 1)
|
X |
Matrix of covariates/lagged outcomes |
y |
Matrix of post-period outcomes |
trt |
Vector of treatment indicator |
r |
Number of factors to use (or start with if CV==1) |
r.end |
Max number of factors to consider if CV==1 |
CV |
Whether to do CV (0=no CV, 1=yes CV) |
force=c(0, 1, 2, 3) |
Fixed effects (0=none, 1=unit, 2=time, 3=two-way) |
y0hat Predicted outcome under control
params Regression parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.