I'm using the Covariate Balancing Propensity Score (CBPS
) package and I want to estimate robust standard errors for my ATT results that incorporate the weights. The MatchIt
and twang
tutorials both recommend using the survey
package to incorporate weights into the estimate of robust standard errors, and it seems to work:
design.CBPS <- svydesign(ids=~1, weights=CBPS.object$weights, data=SUCCESS_All.01)
SE <- svyglm(dv ~ treatment, design = design.CBPS)
Additionally, the survey
SEs are substantially different from the default lm()
way of estimating coefficient and SE provided by the CBPS
package. For those more familiar with either the CPBS
or survey
packages, is here any reason why this would be inappropriate or violate some assumption of the CBPS method? I don't see anything the CBPS
documentation about how to best estimate standard error so that's why I'm slightly concerned.