remove_missing_from_mids {basecamb} | R Documentation |
Remove missing cases from a mids object
Description
Deprecated, use apply_function_to_imputed_data
instead.
Usage
remove_missing_from_mids(mids, var)
Arguments
mids |
mids objects that is filtered. |
var |
a string or vector of strings specifying the variable(s). All cases (i.e. rows) for which there are missing values are removed. |
Details
Remove_missing_from_mids is used to filter a mids object for missing cases in the original dataset in the variable var. This is useful for situations where you want to use as many observations as possible for imputation but only fit your model on a subset of these. Or, if you want to create one large imputed datset from which multiple analyses with multiple outcomes are derived.
Value
a mids object filtered for observed cases of var.
Author(s)
Till D. Best
See Also
apply_function_to_imputed_data
[Package basecamb version 1.1.5 Index]