plot.lcm.gibbs {lca} | R Documentation |
Produce a plot showing posterior means of parameters in a Latent Class Model, as explored using Gibbs Sampling.
plot(out, responses = NULL, classes = NULL, errors = TRUE, size = 0.95)
out |
an object of class lcm.gibbs or lcm.hybrid .
|
responses |
which responses should probabilities be plotted for? |
classes |
which latent classes should be plotted? Defaults to all classes. |
errors |
logical - should credible intervals be shown? |
size |
numeric - what should width of credible interval be? |
Produces a line for each latent class connecting probabilities of giving response response[j]
to item j
ranging over all items j
.
Robin Evans
data(small) out = gibbs.lcm(small, 2, N = 1e3, n.burn = 1e3) plot(out)