countimp | R Documentation |
countimp
Wrapper functionDepending on the entries of mice
's method
argument, this function either calls mice
directly or calls our variant to impute flat file zero-inflated count data.
countimp(...)
... |
|
Kristian Kleinke
data(crim4w)
ini <- countimp(crim4w, maxit=0)
meth <- ini$method
meth[6:7] <- "hp"
meth[8:9] <- "pmm"
pred <- ini$predictorMatrix
pred[,"id"] <- 0
pred["ACRIM",] <- c(0,1,3,2,0,3,3,2,1)
imp <- countimp( data = crim4w, method = meth, predictorMatrix = pred)
imp$method
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.