Displaying 2 results from an estimated 2 matches for "mifit".
Did you mean:
mfit
2007 May 31
0
Using MIcombine for coxph fits
...g looks ok, fit Cox models to each of the 10 imputed
datasets using the functions of the mitools package.
---------------
library(mitools)
miset <- imputationList(list(am.imp[[1]],am.imp[[2]],am.imp[[3]],
am.imp[[4]],am.imp[[5]],am.imp[[6]],am.imp[[7]],am.imp[[8]],
am.imp[[9]],am.imp[[10]]))
mifit <- with(miset, coxph(Surv(time, status) ~ age + sex +
hepmeg + platelet + trt + trig))
mifit
---------------
The "mifit" object shows the individual coxph fits for each imputed
dataset. Now we have to pool these fitted models to obtain an overall
model. The code and result are sh...
2007 Jun 07
1
MITOOLS: Error in eval(expr, envir, enclos) : invalid 'envir' argument
...tion 1 --
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
<snip>
-- Imputation 50 --
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26
> MIset <- imputationList(am.imp[1:M])
> mifit <- with(MIset,
+ coxph(Surv(futime, os) ~ age + symptoms + ctnm + smk))
Error in eval(expr, envir, enclos) : invalid 'envir' argument