
Observed Versus Imputed Values, per Cross-Validation Fold
Source:R/plot_imputed_vs_observed.R
plot_imputed_vs_observed.RdFor a validation of an imputation method on cells whose truth is known: for each fold, the observed (true) values and the imputed values side by side as boxplots and/or overlaid densities. `type = "both"` needs the `patchwork` package.
Usage
plot_imputed_vs_observed(
predictions_df,
observed_col = "observed",
imputed_col = "imputed",
fold_col = "Fold",
type = c("both", "boxplot", "density"),
title = NULL
)