imputedReg | R Documentation |
Make a multiple imputed model
imputedReg(fit, data = NULL, m = 20, seed = 1234, digits = 2, mode = 1, ...)
fit |
An object of class lm, glm, coxph or survreg |
data |
a data.frame |
m |
Number of multiple imputations. The default is m=20. |
seed |
An integer that is used as argument by the set.seed() for offsetting the random number generator. |
digits |
Integer indicating the number of decimal place |
mode |
integer indicating summary mode of class survreg |
... |
Further argument to be passed to mice |
An object of class "imputedReg" which inherits from the class "data.frame"
data(cancer,package="survival")
fit=glm(status~rx+sex+age+obstruct+nodes,data=colon,family="binomial")
imputedReg(fit)
library(survival)
fit=coxph(Surv(time,status)~rx+age+sex+nodes+obstruct+perfor,data=colon)
imputedReg(fit)
fit=survreg(Surv(time,status)~rx+age+sex+nodes+obstruct+perfor,data=colon)
imputedReg(fit)
imputedReg(fit,mode=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.