Guest User

Untitled

a guest
Oct 23rd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. imp=mice(nhanes2, print=F)
  2.  
  3. imp$meth
  4.  
  5. fit0=with(data=imp, glm(hyp~age, family = binomial))
  6.  
  7. fit1=with(data=imp, glm(hyp~age+chl, family = binomial))
  8.  
  9. summary(pool(fit1))
  10.  
  11. pool(summary(fit1))
  12. ## summary of imputation 1 :
  13.  
  14. Call:
  15. glm(formula = hyp ~ age + chl, family = binomial)
  16.  
  17. Deviance Residuals:
  18. Min 1Q Median 3Q Max
  19. -1.0117 -0.7095 -0.4862 -0.2169 2.2267
  20.  
  21. Coefficients:
  22. Estimate Std. Error z value Pr(>|z|)
  23. (Intercept) -5.69937 3.78119 -1.507 0.132
  24. age2 1.34014 1.35545 0.989 0.323
  25. age3 1.55824 1.39266 1.119 0.263
  26. chl 0.01662 0.01749 0.950 0.342
  27.  
  28. (Dispersion parameter for binomial family taken to be 1)
  29.  
  30. **Null deviance: 25.020 on 24 degrees of freedom
  31. Residual deviance: 21.898 on 21 degrees of freedom
  32. AIC: 29.898**
  33.  
  34. Number of Fisher Scoring iterations: 5
  35.  
  36. > pool.compare(fit1, fit0, data=imp, method="likelihood")
  37.  
  38. Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, :
  39. β€˜min’ not meaningful for factors
Add Comment
Please, Sign In to add comment