jmcm: Joint Mean-Covariance Models in R.

Features

Citation

To cite jmcm in publications use:

Pan J and Pan Y (2017). “jmcm: An R Package for Joint Mean-Covariance Modeling of Longitudinal Data.” Journal of Statistical Software, 82(9), pp. 1–29. doi: 10.18637/jss.v082.i09.

Corresponding BibTeX entry:

@Article{,
  title = {{jmcm}: An {R} Package for Joint Mean-Covariance Modeling
    of Longitudinal Data},
  author = {Jianxin Pan and Yi Pan},
  journal = {Journal of Statistical Software},
  year = {2017},
  volume = {82},
  number = {9},
  pages = {1--29},
  doi = {10.18637/jss.v082.i09},
}

Installation

Get the development version from github:

install.packages("devtools")
library(devtools)
devtools::install_github("ypan1988/jmcm", dependencies=TRUE)

Or the released version from CRAN:

install.packages("jmcm")

Usage

Fit a joint mean-covariance model to longitudinal data, via maximum likelihood:

jmcm(formula, data = NULL, triple = c(3, 3, 3), cov.method = c("mcd", "acd", "hpc"),
  optim.method = c("default", "BFGS"), control = jmcmControl(), start = NULL)

Check the JSS paper with the corresponding R replication code v82i09.R (this file is part of jmcm-demo) for details.

Benchmarks

For benchmarking of jmcm package, use the R script jmcm-benchmark.R (this file is part of jmcm-demo) with the following command in R:

source("~/jmcm-benchmark.R") # you may need to change the directory