Learn R Programming

lcmm (version 1.2)

plot.hlme: Plots of marginal and subject-specific residuals

Description

This function displays 2 plots: the marginal residuals against the marginal predictions or the subject-specific residuals against the subject-specific predictions

Usage

## S3 method for class 'hlme':
plot(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 two plots

See Also

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

Run the code above in your browser using DataLab