search for: defaultimputationmethod

Displaying 1 result from an estimated 1 matches for "defaultimputationmethod".

2007 May 17
1
MICE for Cox model
...----------- d <- pbc[,c('time','status','age','sex','hepmeg','platelet', 'trt', 'trig')] d[d==-9] <- NA d[,c(4,5,7)] <- lapply(d[,c(4,5,7)], FUN=as.factor) str(d) imp <- mice(d, m=10, maxit=10, diagnostics=T, seed=500, defaultImputationMethod=c('norm', 'logreg', 'polyreg')) fit <- cox.mids(Surv(time,status) ~ age + sex + hepmeg + platelet + trt + trig, imp) pool(fit) ------------ I have looked at the "pool" function but cannot figure out what I have done wrong. Would really appreciate any help...