Learn R Programming

lcmm (version 1.5.7)

plot.lcmm: 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)
## S3 method for class 'lcmm':
plot(x,\dots)
## S3 method for class 'Jointlcmm':
plot(x,\dots)

Arguments

x
an object inheriting from classes hlme, lcmm 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 two plots

See Also

hlme, lcmm, Jointlcmm

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

Run the code above in your browser using DataLab