Function for computing the leading 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 iny
to which the imputation model is fitted. Thery
generally distinguishes the observed (TRUE
) and missing values (FALSE
) iny
.- x
Numeric design matrix with
length(y)
rows with predictors fory
. Matrixx
may have no missing values.- wy
Logical vector of length
length(y)
. ATRUE
value indicates locations iny
for 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.