mice.impute.2l.pmm | R Documentation |
The function imputes an incomplete variable based on a normal linear mixed effects model. The model is estimated using function glmmPQL()
from package MASS. Matching is done by .pmm.match
from package mice.
mice.impute.2l.pmm(y, ry, x, type, intercept = TRUE, donors = 5,
wy = NULL, ...)
y |
Numeric vector with incomplete data |
ry |
Response pattern of |
x |
matrix with |
type |
vector of length |
intercept |
Logical. shall the intercept be included as a fixed and random effect?. |
donors |
The size of the donor pool; default is 5. |
wy |
Logical vector of length |
... |
additional arguments passed down from the main mice call |
Model specification / allowed entries in mice
's predictorMatrix
:
0 = variable not included in imputation model
1 = fixed effect
2 = fixex and random effect
-2 = class variable
vector with imputations
Kristian Kleinke
Kleinke, K. (2016, September). Multiple Imputation of Multilevel Data by "Two-Level Predictive Mean Matching". Paper presented at the 50th Congress of the German Psychological Society (DGPs), Leipzig, Germany.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.