Learn R Programming

poLCA (version 1.3.1)

plot.poLCA: Plot results of an estimated latent class model

Description

Plots estimated class-conditional response probabilities contained in an object of class poLCA as generated by poLCA. It also shows the estimated population proportion in each class. Useful for visualization of results and interpretation of "meanings" of groupings uncovered by the latent class model.

Usage

plot.poLCA(x, ...)

Arguments

x
An object of class poLCA.
...
additional arguments.

Details

If all manifest variables are dichotomous, the plot shows the estimated probability of an affirmative outcome on each manifest variable, by latent class. If any of the manifest variables are polytomous, the plot shows the estimated class-conditional response probabilities for every outcome on the manifest variables.

See Also

poLCA

Examples

Run this code
# Model with only dichotomous manifest variables
data(values)
f1 <- cbind(A,B,C,D)~1
M1 <- poLCA(f1,values,nclass=2,verbose=FALSE)
plot(M1)

# Model with polytomous manifest variables
data(gss82)
f2 <- cbind(PURPOSE,ACCURACY,UNDERSTA,COOPERAT)~1
M2 <- poLCA(f2,gss82,nclass=3,maxiter=2000)
plot(M2)

Run the code above in your browser using DataLab