fit_prog_gsynth: Use gsynth to fit factor model for E[Y(0)|X]

Description Usage Arguments Value

Description

Use gsynth to fit factor model for E[Y(0)|X]

Usage

1
fit_prog_gsynth(X, y, trt, r = 0, r.end = 5, force = 3, CV = 1)

Arguments

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)

Value


ebenmichael/ents documentation built on May 31, 2019, 8:45 p.m.