| plot_misl_trace | R Documentation |
Plots the mean and standard deviation of imputed values across iterations for all incomplete variables, paginated in grids of up to 3 variables per page. Stable traces that mix well across datasets indicate convergence. Note that trace statistics are only computed for continuous and numeric binary columns – categorical and ordinal columns are excluded automatically.
plot_misl_trace(misl_result, ncol = 2, nrow = 3)
misl_result |
A list returned by |
ncol |
Number of columns per page. Default |
nrow |
Number of rows per page. Default |
Invisibly returns the long-format trace data frame used for plotting.
set.seed(1)
n <- 100
demo_data <- data.frame(x1 = rnorm(n), x2 = rnorm(n), y = rnorm(n))
demo_data[sample(n, 10), "y"] <- NA
misl_imp <- misl(demo_data, m = 3, maxit = 3, con_method = "glm")
plot_misl_trace(misl_imp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.