Usage
mice.impute.2l.contextual.norm(y, ry, x, type, ridge = 10^(-5),
imputationWeights = NULL, interactions = NULL, quadratics = NULL, ...)
Arguments
y
Incomplete data vector of length n
ry
Vector of missing data pattern (FALSE
-- missing,
TRUE
-- observed)
x
Matrix (n
x p
) of complete covariates.
type
Type of predictor variables. type=-2
refers to the cluster variable,
type=2
denotes a variable for which also a contextual effect is
included and type=1
denotes all other variables which are
included as 'ordinary'
ridge
Ridge parameter in the diagonal of $\bold{X}'\bold{X}$
imputationWeights
Optional vector of sample weights
interactions
Vector of variable names used for creating interactions
quadratics
Vector of variable names used for creating quadratic terms
...
Further arguments to be passed