Plot DP Mixture Density
dpmirt_plot_dp_density.RdDisplays the posterior mean density of the Dirichlet Process mixture
with pointwise credible bands. Requires a pre-computed
dpmirt_dp_density object (computed automatically by
dpmirt or manually via dpmirt_dp_density).
Requires ggplot2.
Details
For 2PL/3PL IRT and SI parameterizations, transformed-scale DP
density reconstruction currently uses the same location-shift contract as
dpmirt_dp_density. Treat these plots as diagnostic summaries;
Rasch/location-shift settings are the most directly interpretable.
See also
dpmirt_dp_density, plot.dpmirt_fit
Other visualization:
dpmirt_plot_caterpillar(),
dpmirt_plot_clusters(),
dpmirt_plot_density(),
dpmirt_plot_density_compare(),
dpmirt_plot_icc(),
dpmirt_plot_info(),
dpmirt_plot_items(),
dpmirt_plot_parameter_trace(),
dpmirt_plot_pp_check(),
dpmirt_plot_trace(),
dpmirt_plot_wright_map(),
plot.dpmirt_estimates(),
plot.dpmirt_fit(),
plot.dpmirt_sim()
Examples
if (FALSE) { # \dontrun{
sim <- dpmirt_simulate(200, 20, model = "rasch",
latent_shape = "bimodal", seed = 42)
fit <- dpmirt(sim$response, model = "rasch", prior = "dpm",
niter = 10000, nburnin = 3000, seed = 123)
dpmirt_plot_dp_density(fit)
} # }