Displaying 1 result from an estimated 1 matches for "popmis".
Did you mean:
popis
2012 Aug 17
0
impute multilevel data in MICE
...e predictors contain a column of ones representing the intercept. Random effects are coded in the predictor matrix as a `2'. The class variable (only one is allowed) is coded by a `-2'."
and
"R> pred["popular", ] <- c(0, -2, 0, 2, 1, 2, 0)
R> imp <- mice(popmis, meth = c("", "", "2l.norm", "", "",
+ "", ""), pred = pred, maxit = 1, seed = 71152)"
My questions are:
1. In the above example, only 1 variable have missing values, so in the code, only one "2l.norm" was spe...