Diagnostics

After performing multiple imputation, you should inspect the trace plots of the imputed variables to verify convergence. Mice.jl includes a plotting function to do this.

RecipesBase.plotFunction
plot(
    mids::Mids,
    var::String
    )

Plots the mean and standard deviation of the imputed values for a given variable. Here var is given as a string (the name of the variable).

source
plot(
    mids::Mids,
    var_no::Int
    )

Plots the mean and standard deviation of the imputed values for a given variable. Here var_no is given as an integer (the index of the variable in the visitSequence).

source

You do need to load the package Plots.jl to see the plots:

using Plots

# Not run
plot(myMids, 7)

Funded by Wellcome     Wellcome logo