Function for computing the lagged values of an imputed response in mice.
Arguments
- y
Vector to be imputed
- ry
Logical vector of length
length(y)indicating the the subsety[ry]of elements inyto which the imputation model is fitted. Therygenerally distinguishes the observed (TRUE) and missing values (FALSE) iny.- x
Numeric design matrix with
length(y)rows with predictors fory. Matrixxmay have no missing values.- wy
Logical vector of length
length(y). ATRUEvalue indicates locations inyfor which imputations are created.- group_val
[
vector()]
Values of the grouping variable.- group_var
[
character(1)]
Name of the grouping variable.- resp
[
character(1)]
Name of the response variable.- ...
Other named arguments.
