knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
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:
emmeans
packageC++
backend:C++
and automatic differentiation to
obtain precise gradient information for model fitting.mmrm
.mmrm
fit and generate tabulation and plots of least square means per visit and treatment arm, tabulation of model diagnostics, diagnostic graphs, and other standard model outputs.You can install the current release version from CRAN with:
install.packages("mmrm")
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.
See also the introductory vignette or get started by trying out the example:
mmrm
To cite mmrm
please see here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.