Learn R Programming

lcmm (version 1.2)

postprob.hlme: Posterior classification stemmed from a LCMM estimation

Description

This function provides informations about the posterior classification stemmed from a hlme object.

Usage

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

Arguments

x
an object inheriting from class hlme, representing a fitted latent class linear mixed-effects model
...
further arguments to be passed to or from other methods. They are ignored in this function.

Details

This function provides the number of subjects classified a posteriori in each latent class, and the classification table that contains the mean of the posterior probability of belonging to each latent class over the subjects classified in each of the latent classes. This table aims at evaluating the quality of the posterior classification

See Also

plot.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))
postprob.hlme(m)

Run the code above in your browser using DataLab