mmrm

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Project Status: Active – The project has reached a stable, usable state and is being actively developed. CRAN status CRAN monthly downloads CRAN total downloads Code Coverage \

Mixed models for repeated measures (MMRM) are a popular choice for analyzing longitudinal continuous outcomes in randomized clinical trials and beyond; see Cnaan, Laird and Slasor (1997) for a tutorial and Mallinckrodt, Lane and Schnell (2008) for a review. This package implements MMRM based on the marginal linear model without random effects using Template Model Builder (TMB) which enables fast and robust model fitting. Users can specify a variety of covariance matrices, weight observations, fit models with restricted or standard maximum likelihood inference, perform hypothesis testing with Satterthwaite or Kenward-Roger adjustment, and extract least square means estimates by using emmeans.

Scope:

Main Features:

Installation

Release

You can install the current release version from CRAN with:

install.packages("mmrm")

Development

You can install the current development version from R-Universe with:

install.packages(
  "mmrm",
  repos = c("https://openpharma.r-universe.dev", "https://cloud.r-project.org")
)

This is preferred, because for Windows and MacOS systems you can install pre-compiled binary versions of the packages, avoiding the need for compilation.

Alternatively, you can install the current development version from GitHub with:

if (!require("remotes")) {
  install.packages("remotes")
}
remotes::install_github("openpharma/mmrm")

Note that this installation from source can take a substantial amount of time, because compilation of the C++ sources is required.

Getting Started

See also the introductory vignette or get started by trying out the example:


Citing mmrm

To cite mmrm please see here.



openpharma/mmrm documentation built on April 14, 2025, 2:10 a.m.