imputedReg {autoReg} | R Documentation |
Make a multiple imputed model
Description
Make a multiple imputed model
Usage
imputedReg(fit, data = NULL, m = 20, seed = 1234, digits = 2, mode = 1, ...)
Arguments
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 |
Value
An object of class "imputedReg" which inherits from the class "data.frame"
Examples
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)
[Package autoReg version 0.3.3 Index]