Displaying 2 results from an estimated 2 matches for "smallsample".
Did you mean:
smallexample
2013 Feb 14
2
Plotting survival curves after multiple imputation
...data.i <- complete(data, i)
analyses[[i]] <- coxph(formula, data = data.i, ...)
}
object <- list(call = call, call1 = data$call,
nmis = data$nmis, analyses = analyses)
return(object)
}
pool.impute <- function (object, method = "smallsample") {
if ((m <- length(object$analyses)) < 2)
stop("At least two imputations are needed for pooling.\n")
analyses <- object$analyses
k <- length(coef(analyses[[1]]))
names <- names(coef(analyses[[1]]))
qhat <- matrix(NA, nrow =...
2007 May 17
1
MICE for Cox model
R-helpers:
I have a dataset that has 168 subjects and 12 variables. Some of the
variables have missing data and I want to use the multiple imputation
capabilities of the "mice" package to address the missing data. Given
that mice only supports linear models and generalized linear models (via
the lm.mids and glm.mids functions) and that I need to fit Cox models, I
followed the previous