- amelia.out.nok <- amelia(df, m=200, p2s=0, idvars=c("x","k","w_pred"), noms=noms)
- mod.amelia.nok <- zelig(y~x.obs+g, model='ls', data=amelia.out.nok$imputations, cite=FALSE)
- (coefse <- combine_coef_se(mod.amelia.nok, messages=FALSE))
-
- est.x.mi <- coefse['x.obs','Estimate']
- est.x.se <- coefse['x.obs','Std.Error']
- result <- append(result,
- list(Bxy.est.amelia.nok = est.x.mi,
- Bxy.ci.upper.amelia.nok = est.x.mi + 1.96 * est.x.se,
- Bxy.ci.lower.amelia.nok = est.x.mi - 1.96 * est.x.se
- ))
-
- est.g.mi <- coefse['g','Estimate']
- est.g.se <- coefse['g','Std.Error']
-
- result <- append(result,
- list(Bgy.est.amelia.nok = est.g.mi,
- Bgy.ci.upper.amelia.nok = est.g.mi + 1.96 * est.g.se,
- Bgy.ci.lower.amelia.nok = est.g.mi - 1.96 * est.g.se
- ))
+ ## amelia.out.nok <- amelia(df, m=200, p2s=0, idvars=c("x","w_pred"), noms=noms)
+ ## mod.amelia.nok <- zelig(y~x.obs+g, model='ls', data=amelia.out.nok$imputations, cite=FALSE)
+ ## (coefse <- combine_coef_se(mod.amelia.nok, messages=FALSE))
+
+ ## est.x.mi <- coefse['x.obs','Estimate']
+ ## est.x.se <- coefse['x.obs','Std.Error']
+ ## result <- append(result,
+ ## list(Bxy.est.amelia.nok = est.x.mi,
+ ## Bxy.ci.upper.amelia.nok = est.x.mi + 1.96 * est.x.se,
+ ## Bxy.ci.lower.amelia.nok = est.x.mi - 1.96 * est.x.se
+ ## ))
+
+ ## est.g.mi <- coefse['g','Estimate']
+ ## est.g.se <- coefse['g','Std.Error']
+
+ ## result <- append(result,
+ ## list(Bgy.est.amelia.nok = est.g.mi,
+ ## Bgy.ci.upper.amelia.nok = est.g.mi + 1.96 * est.g.se,
+ ## Bgy.ci.lower.amelia.nok = est.g.mi - 1.96 * est.g.se
+ ## ))