Function for computing the lagged values of an imputed response in mice
.
mice.impute.lag(y, ry, x, wy = NULL, group_val, group_var, resp, ...)
Vector to be imputed
Logical vector of length length(y)
indicating the
the subset y[ry]
of elements in y
to which the imputation
model is fitted. The ry
generally distinguishes the observed
(TRUE
) and missing values (FALSE
) in y
.
Numeric design matrix with length(y)
rows with predictors for
y
. Matrix x
may have no missing values.
Logical vector of length length(y)
. A TRUE
value
indicates locations in y
for which imputations are created.
[vector()
]
Values of the grouping variable.
[character(1)
]
Name of the grouping variable.
[character(1)
]
Name of the response variable.
Other named arguments.