plot.lcm.gibbs {lca}R Documentation

Plot posterior means for Latent Class Model.

Description

Produce a plot showing posterior means of parameters in a Latent Class Model, as explored using Gibbs Sampling.

Usage

plot(out, responses = NULL, classes = NULL, errors = TRUE, size = 0.95)

Arguments

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?

Details

Produces a line for each latent class connecting probabilities of giving response response[j] to item j ranging over all items j.

Author(s)

Robin Evans

See Also

gibbs.lcm, hybrid.lcm.

Examples

data(small)

out = gibbs.lcm(small, 2, N = 1e3, n.burn = 1e3)
plot(out)

[Package lca version 0.2 Index]