MyNixOS website logo
Description

Multivariate Joint Models with 'bamlss'.

Multivariate joint models of longitudinal and time-to-event data based on functional principal components implemented with 'bamlss'. Implementation for Volkmann, Umlauf, Greven (2023) <arXiv:2311.06409>.

MJMbamlss

The goal of MJMbamlss is to provide a working implementation of the proposed approach found in Volkmann, Umlauf, Greven (2023): “Flexible joint models for multivariate longitudinal and time-to-event data using multivariate functional principal components”.

You can find more information on the package in the README.txt file in the inst/ folder. As a general outline for the usage of MJMbamlss refer to the following steps:

  1. Preprocess the data to be of long format with fixed variable name ‘marker’ for the longitudinal outcomes factor variable.

  2. To estimate the MFPC basis, first remove observations with too little information. Then use wrapper function ‘preproc_MFPCA’ to estimate MFPCs. The number of MFPCs can be determined looking at the ratio of explained variance.

  3. Prepare the model formula. The formula is a list specifying each additive predictor separately, except for marker-specific predictors. That is, the baseline hazard can be specified with ‘Surv2(.)’ functions on the left of the ‘~’, baseline covariates are specified by ‘gamma ~’, error measurments with ‘sigma ~’. The alpha and mu predictors need to specify the model formulas with interactions of the variable ‘marker’, so exclude the intercept and specify all model terms as marker-interactions. Use the smooth terms ‘bs = “unc_pcre”’ for the functional principal components based random effects. Each ‘unc_pcre’ term needs to be supplied with an ‘xt’ argument ‘“mfpc”’ that contains a multiFunData object of the corresponding MFPC. Note also that each smooth term should contain the ‘xt’ argument ‘“scale” = FALSE’.

  4. Prepare the data for the model fit. Use the wrapper function ‘attach_wfpc’ to add evaluations of the MFPCs to the data set.

  5. Fit the model using ‘bamlss’ by specifying the family ‘mjm_bamlss’.

Please use the provided files in the folder inst/ as a reference for your analysis.

Installation

You can install the stable release version of MJMbamlss from CRAN with:

install.packages("MJMbamlss")

You can install the development version of MJMbamlss from GitHub with:

# install.packages("devtools")
devtools::install_github("alexvolkmann/MJMbamlss")
Metadata

Version

0.1.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows