Learn R Programming

lcmm (version 1.2)

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

Description

This function provides the histograms of the posterior class-membership probabilities stemmed from a hlme object.

Usage

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

Arguments

x
an object inheriting from class hlme, representing a fitted latent class linear mixed-effects model
...
other parameters to be passed through to plotting functions

Value

  • Returns as many plots as the number of latent classes

See Also

postprob.hlme, hlme, plot.predict.hlme

Examples

Run this code
data(data_hlme)
m<-hlme(Y~Time+X1+X1_time,mixture=~Time,random=~Time,classmb=~X2+X3,subject=ID,ng=2,data=data_hlme,B=c(0,0,0,30,25,0,-1,0,0,5,0,1,1))

plot.postprob.hlme(m)

Run the code above in your browser using DataLab