Learn R Programming

lcmm (version 1.7.8)

methods: Standard methods for estimated models

Description

coef, vcov, fixef, ranef, fitted and residuals methods for estimated hlme, lcmm, mutlcmm and Jointlcmm models.

Usage

# S3 method for hlme
coef(object,...)
# S3 method for lcmm
coef(object,...)
# S3 method for Jointlcmm
coef(object,...)
# S3 method for multlcmm
coef(object,...)

# S3 method for hlme vcov(object,...) # S3 method for lcmm vcov(object,...) # S3 method for Jointlcmm vcov(object,...) # S3 method for multlcmm vcov(object,...)

# S3 method for hlme fixef(object,...) # S3 method for lcmm fixef(object,...) # S3 method for Jointlcmm fixef(object,...) # S3 method for multlcmm fixef(object,...)

# S3 method for hlme ranef(object,...) # S3 method for lcmm ranef(object,...) # S3 method for Jointlcmm ranef(object,...) # S3 method for multlcmm ranef(object,...)

# S3 method for hlme fitted(object,...) # S3 method for lcmm fitted(object,...) # S3 method for Jointlcmm fitted(object,...) # S3 method for multlcmm fitted(object,...)

# S3 method for hlme residuals(object,...) # S3 method for lcmm residuals(object,...) # S3 method for Jointlcmm residuals(object,...) # S3 method for multlcmm residuals(object,...)

Arguments

object

an object of class hlme, lcmm, multlcmm or Jointlcmm

...

other arguments. There are ignored in these functions.

Value

For coef, the vector of the estimates.

For vcov, the variance-covariance matrix of the estimates.

For fixef : - for hlme, lcmm and multlcmm objects, a list containing the fixed effects estimates in the class-membership model and in the longitudinal model. - for Jointlcmm objects, a list containing the fixed effects estimates in the class-membership model, the survival model and in the longitudinal model.

For ranef, a matrix (nrow=number of subjects, ncol=number of covariates with random effect) containing the individual random effects.

For fitted, a vector containing the subject-specific predictions extracted from object.

For residuals, a vector containing the subject-specific residuals extracted from object.