plot {randomLCA}R Documentation

Plot a randomLCA object

Description

Plots the outcome probabilities for a randomLCA object, for random effects objects this can be either marginal or conditional or both. For a 2 level random effects model conditional2 will condition on the subject random effect and integrate over the period random effects.

Usage

## S3 method for class 'randomLCA':
plot(x, ... ,graphtype = c("conditional", "marginal",
        "conditional2","both"), conditionalp = 0.5, classhorizontal = TRUE)

Arguments

x randomLCA object
graphtype Type of graph
conditionalp For a conditional graph the percentile corresponding to the random effect at which the outcome probability is to be calculated
classhorizontal classes to be plotted across the page
... additional parameters to xyplot

Author(s)

Ken Beath ken@kjbeath.com.au

See Also

calc.cond.prob,calc.cond.prob

Examples

data(uterinecarcinoma)
# standard latent class with 2 classes
uterinecarcinoma.lca2 <- randomLCA(uterinecarcinoma[,1:7],freq=uterinecarcinoma$freq)
plot(uterinecarcinoma.lca2)

[Package randomLCA version 0.6-2 Index]