Compare the observed and imputed values of either all of the continuous or all of the categorical variables used in an imputation.
observed_vs_imputed( object, data, type = c("categorical", "continuous"), labels = NULL )
object | An |
---|---|
data | A dataset that was multiply imputed using |
type | Whether to examine continuous or categorical data. Both cannot be assessed at the same time since they are different data types. |
labels | Optional labels for the variables contained in the columns of
|
An observed_vs_imputed
object that inherits from dplyr::tibble
containing the columns:
The value of a particular variable.
Either "Observed"
or the imputation number (e.g., "Imputation 1"
,
"Imputation 2"
, ...).
The name of the variable that was imputed.
A pretty label for the variable that was imputed.