Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ranef

Extract Random Effects for Joint Models


Description

ranef is a generic function which extracts random effects from objects returned by jmodelTM() or jmodelMult().

Usage

## S3 method for class 'jmodelTM'
ranef(object, ...)
## S3 method for class 'jmodelMult'
ranef(object, ...)

Arguments

object

an object inheriting from class jmodelTM or jmodelMult.

...

additional arguments required. None is used in this method.

Value

A numeric matrix with rows denoting the subjects and columns the random effects.

Author(s)

Examples

## Not run: 
fitLME <- lme(proth ~ Trt * obstime, random = ~ 1 | ID, data = liver)
fitCOX <- coxph(Surv(start, stop, event) ~ Trt, data = liver, x = TRUE)
fitJT.ph <- jmodelTM(fitLME, fitCOX, liver, timeVarY = 'obstime')

# random effect for the joint model
ranef(fitJT.ph)

## End(Not run)

JSM

Semiparametric Joint Modeling of Survival and Longitudinal Data

v1.0.1
BSD_3_clause + file LICENSE
Authors
Cong Xu, Pantelis Z. Hadjipantelis and Jane-Ling Wang
Initial release
2020-07-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.