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.plot
— Functionplot(
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).
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
).
You do need to load the package Plots.jl
to see the plots:
using Plots
# Not run
plot(myMids, 7)
Funded by Wellcome
