plot {randomLCA} | R Documentation |
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.
## S3 method for class 'randomLCA': plot(x, ... ,graphtype = c("conditional", "marginal", "conditional2","both"), conditionalp = 0.5, classhorizontal = TRUE)
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 |
Ken Beath ken@kjbeath.com.au
data(uterinecarcinoma) # standard latent class with 2 classes uterinecarcinoma.lca2 <- randomLCA(uterinecarcinoma[,1:7],freq=uterinecarcinoma$freq) plot(uterinecarcinoma.lca2)