Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.glca

Plots the Estimated Parameters of Fitted glca Model


Description

plot method for class "glca".

Usage

## S3 method for class 'glca'
plot(x, ask = TRUE, ...)

Arguments

x

an object of "glca", usually, a result of a call to glca.

ask

a logical value whether to be asked before printing each plot.

...

further arguments passed to or from other methods.

Value

This function plots estimated parameters of model.

See Also

Examples

## Not run: 
# LCA
lca = glca(item(DEFECT, HLTH, RAPE, POOR, SINGLE, NOMORE) ~ 1,
            data = gss08, nclass = 3, na.rm = TRUE)
plot(lca)

# Multitple Group LCA (MGLCA)
mglca1 = glca(item(DEFECT, HLTH, RAPE, POOR, SINGLE, NOMORE) ~ 1,
             group = DEGREE, data = gss08, nclass = 3)
plot(mglca1)

# Multitple Group LCA (MGLCA) (measure.inv = FALSE)
mglca2 = glca(item(DEFECT, HLTH, RAPE, POOR, SINGLE, NOMORE) ~ 1,
             group = DEGREE, data = gss08, nclass = 3, measure.inv = FALSE)
plot(mglca2)
plot(mglca2, "all")

# Multilvel LCA (MLCA)
mlca = glca(item(ECIGT, ECIGAR, ESLT, EELCIGT, EHOOKAH) ~ 1,
            group = SCH_ID, data = nyts18, nclass = 3, ncluster = 3)
plot(mlca)

## End(Not run)

glca

Estimating a Group-Effect in Latent Class Analysis

v1.2.2
GPL-3
Authors
Youngsun Kim [aut, cre], Hwan Chung [aut]
Initial release
2021-03-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.