Learn R Programming

lcmm (version 1.6.6)

plot.postprob: Histograms of the posterior class-membership probabilities

Description

This function provides the histograms of the posterior class-membership probabilities stemmed from a Jointlcmm, lcmm, hlme or multlcmm object.

Usage

## S3 method for class 'Jointlcmm':
plot.postprob(x,\dots)
## S3 method for class 'lcmm':
plot.postprob(x,\dots)
## S3 method for class 'hlme':
plot.postprob(x,\dots)
## S3 method for class 'multlcmm':
plot.postprob(x,\dots)

Arguments

x
an object inheriting from classes lcmm, hlme, multlcmm or Jointlcmm, representing respectively a fitted latent class linear mixed model, a more general latent class mixed model or a joint latent class mo
...
other parameters to be passed through to plotting functions

Value

  • Returns as many plots as the number of latent classes

See Also

Jointlcmm, lcmm, hlme,postprob

Examples

Run this code
data(data_hlme)
m<-lcmm(Y~Time*X1,mixture=~Time,random=~Time,classmb=~X2+X3,
subject='ID',ng=2,data=data_hlme,B=c(0.41,0.55,-0.18,-0.41,
-14.26,-0.34,1.33,13.51,24.65,2.98,1.18,26.26,0.97))  
plot.postprob(m)

Run the code above in your browser using DataLab