Learn R Programming

lcmm (version 1.5.7)

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 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)

Arguments

x
an object inheriting from classes lcmm, hlme or Jointlcmm, representing respectively a fitted latent class linear mixed model, a more general latent class mixed model or a joint latent class model
...
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)  
plot.postprob(m)

Run the code above in your browser using DataLab