plot_density: Plot density of observed and imputed values for a single...

Description Usage Arguments

View source: R/plot_density.R

Description

This function returns density plots for the observed data (blue) and plots for the imputed values of each imputation (red).

Usage

1
plot_density(data, imp_id, plot_var, kernel = "auto")

Arguments

data

A data frame containing multiple imputations.

imp_id

A grouping column that identifies the rows belonging to each imputation.

plot_var

The variable you wish to plot.

kernel

The kernel density type you want to use. "auto" will select Rectangular for variables with < 5 unique values and Gaussian otherwise.


dsquire/imptools documentation built on Feb. 12, 2021, 10:08 a.m.