Joint Modelling of Multivariate Longitudinal Data and Time-to-Event Outcomes

Fits the joint model proposed by Henderson and colleagues (2000) , but extended to the case of multiple continuous longitudinal measures. The time-to-event data is modelled using a Cox proportional hazards regression model with time-varying covariates. The multiple longitudinal outcomes are modelled using a multivariate version of the Laird and Ware linear mixed model. The association is captured by a multivariate latent Gaussian process. The model is estimated using a Monte Carlo Expectation Maximization algorithm. This project was funded by the Medical Research Council (Grant number MR/M013227/1).


joineRML 0.4.9 joineRML hex logo

CRAN version R-CMD-check Codecov test coverage License: GPL-3 DOI Monthly CRAN downloads Total CRAN downloads

joineRML fits joint models for multiple continuous longitudinal outcomes and a time-to-event outcome. It combines multivariate linear mixed-effects models with a Cox proportional hazards model, estimated using Monte Carlo EM. The package also provides dynamic predictions, bootstrap inference, and model summaries in tidy tables.

Installation

joineRML requires R 4.1.0 or later.

CRAN release

Install the current CRAN release with:

install.packages("joineRML")

Development version

Version 0.4.9 is being prepared for submission to CRAN. Install the development version from GitHub with:

install.packages("remotes")
remotes::install_github("graemeleehickey/joineRML")

Installation from GitHub requires a C++ compiler. On Windows, install Rtools for your version of R. On macOS, install the Xcode Command Line Tools by running xcode-select --install in Terminal.

Example

Use mjoint() to fit a joint model. This example models two longitudinal outcomes, log valve gradient and log left ventricular mass index, together with time to death in the heart.valve dataset. For this illustration, we retain visits with both longitudinal measurements observed.

library(joineRML)
data(heart.valve)
hvd <- heart.valve[!is.na(heart.valve$log.grad) & !is.na(heart.valve$log.lvmi), ]

set.seed(12345)
fit <- mjoint(
  formLongFixed = list(
    grad = log.grad ~ time + sex + hs,
    lvmi = log.lvmi ~ time + sex
  ),
  formLongRandom = list(
    grad = ~ 1 | num,
    lvmi = ~ time | num
  ),
  formSurv = Surv(fuyrs, status) ~ age,
  data = list(hvd, hvd),
  timeVar = "time"
)

Inspect the estimates, obtain a tidy table with confidence intervals, and plot the convergence history of the survival-model parameters:

summary(fit)
tidy(fit, conf.int = TRUE)
plot(fit, params = "gamma")

joineRML supplies the broom-compatible methods tidy(), augment(), and glance(). Approximate standard errors are calculated from the empirical information matrix; use bootSE() for bootstrap standard errors and confidence intervals. The functions dynLong() and dynSurv() provide subject-specific dynamic predictions for longitudinal outcomes and survival, respectively.

From version 0.4.9, you can pass seed = 12345 directly to mjoint() instead of calling set.seed() before the fit. A supplied seed applies to that fit and preserves the previous R random-number state.

Use anova(fit_reduced, fit_full) to compare nested covariate models fitted to the same observations with the same random-effects structure. The model-comparison help explains the likelihood-ratio test and its numerical-precision checks. Use test = FALSE for a comparison table without a test.

Documentation

The package website includes:

For an installed CRAN package, you can also open the vignettes from R:

vignette("joineRML", package = "joineRML")
vignette("joineRML-tidy", package = "joineRML")
vignette("technical", package = "joineRML")

Citation

If you use joineRML in a publication, please cite:

Hickey GL, Philipson P, Jorgensen A, Kolamunnage-Dona R. joineRML: a joint model and software package for time-to-event and multivariate longitudinal outcomes. BMC Medical Research Methodology. 2018; 18: 50. doi:10.1186/s12874-018-0502-1.

To obtain the citation and a BibTeX entry in R, run:

citation("joineRML")

Support

Report bugs or suggest improvements through GitHub issues, or contact the maintainer, Graeme L. Hickey.

Funding

Development of joineRML was funded by the Medical Research Council (grant MR/M013227/1).

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("joineRML")

0.4.9 by Graeme L. Hickey, 7 days ago


https://graemeleehickey.github.io/joineRML/, https://github.com/graemeleehickey/joineRML, https://CRAN.R-project.org/package=joineRML


Report a bug at https://github.com/graemeleehickey/joineRML/issues


Browse source code at https://github.com/cran/joineRML


Authors: Graeme L. Hickey [cre, aut] (ORCID: , Pete Philipson [aut] , Andrea Jorgensen [ctb] , Ruwanthi Kolamunnage-Dona [aut] (ORCID: , Paula Williamson [ctb] , Dimitris Rizopoulos [ctb, dtc] (data/renal.rda , R/hessian.R , R/vcov.R) , Alessandro Gasparini [aut] (ORCID: , Medical Research Council [fnd] (Grant number: MR/M013227/1)


Documentation:   PDF Manual  


GPL-3 | file LICENSE license


Imports cobs, generics, ggplot2, graphics, lme4, MASS, Matrix, mvtnorm, parallel, randtoolbox, Rcpp, RcppArmadillo, stats, tibble, utils

Depends on nlme, survival

Suggests broom, doParallel, dplyr, foreach, gtsummary, JM, joineR, knitr, modelsummary, pkgdown, rmarkdown, testthat

Linking to Rcpp, RcppArmadillo


Imported by JMbdirect, jmBIG.

Suggested by BCClong, broom.


See at CRAN