Learn R Programming

⚠️There's a newer version (1.5-2) of this package.Take me there.

JM: Joint Models for Longitudinal and Survival Data using Maximum Likelihood

Description

This repository contains the source files for the R package JM. This package fits joint models for longitudinal and time-to-event data using maximum likelihood. These models are applicable in mainly two settings. First, when focus is on the survival outcome and we wish to account for the effect of an endogenous (aka internal) time-dependent covariates measured with error. Second, when focus is on the longitudinal outcome and we wish to correct for nonrandom dropout.

The basic joint-model-fitting function of the package is jointModel(). This accepts as main arguments a linear mixed model fitted by function lme() from the nlme package and a Cox model fitted using function coxph() from the survival package.

Basic Features

  • It can fit joint models for a single continuous longitudinal outcome and a time-to-event

outcome.

  • For the survival outcome a relative risk models is assumed. The method argument of

jointModel() can be used to define the type of baseline hazard function. Options are a B-spline approximation, a piecewise-constant function, the Weibull hazard and a completely unspecified function (i.e., a discrete function with point masses at the unique event times).

  • The user has now the option to define custom transformation functions for the terms of

the longitudinal submodel that enter into the linear predictor of the survival submodel (arguments derivForm, parameterization). For example, the current value of the longitudinal outcomes, the velocity of the longitudinal outcome (slope), the area under the longitudinal profile. From the aforementioned options, in each model up to two terms can be included. In addition, using argument InterFact interactions terms can be considered.

Dynamic predictions

  • Function survfitJM() computes dynamic survival probabilities.

  • Function predict() computes dynamic predictions for the longitudinal outcome.

  • Function aucJM() calculates time-dependent AUCs for joint models, and function

rocJM() calculates the corresponding time-dependent sensitivities and specifies.

  • Function prederrJM() calculates prediction errors for joint models.

Copy Link

Version

Install

install.packages('JM')

Monthly Downloads

3,629

Version

1.4-8

License

GPL (>= 2)

Maintainer

Dimitris Rizopoulos

Last Published

April 16th, 2018

Functions in JM (1.4-8)

aids

Didanosine versus Zalcitabine in HIV Patients
wald.strata

Wald Test for Stratification Factors
crLong

Transform Competing Risks Data in Long Format
dynCJM

A Dynamic Discrimination Index for Joint Models
jointModelObject

Fitted jointModel Object
DerivSplines

Derivatives and Integrals of B-splines and Natural Cubic splines
fitted

Fitted Values for Joint Models
pbc2

Mayo Clinic Primary Biliary Cirrhosis Data
prothro

Prednisone versus Placebo in Liver Cirrhosis Patients
JM

Joint Modeling of Longitudinal and Time-to-Event Data in R
residuals

Residuals for Joint Models
plot.survfitJM

Plot Method for survfitJM Objects
jointModel

Joint Models for Longitudinal and Survival Data
ranef

Random Effects Estimates for Joint Models
rocJM

Predictive Accuracy Measures for Longitudinal Markers under a Joint Modelling Framework
plot

Plot Diagnostics for Joint Models
simulate

Simulate from Joint Models.
aucJM

Time-Dependent AUCs for Joint Models
summary.weibull.frailty

Summary Method for weibull.frailty Objects
prederrJM

Prediction Errors for Joint Models
predict

Predictions for Joint Models
coef

Estimated Coefficients for Joint Models
weibull.frailty

Weibull Model with Gamma Frailties
xtable

xtable Method from Joint Models.
anova

Anova Method for Fitted Joint Models
plot.rocJM

Plot Method for rocJM Objects
piecewiseExp.ph

Proportional Hazards Models with Piecewise Constant Baseline Hazard Function
survfitJM

Prediction in Joint Models