coxme: Mixed Effects Cox Models

Fit Cox proportional hazards models containing both fixed and random effects. The random effects can have a general form, of which familial interactions (a "kinship" matrix) is a particular special case. Note that the simplest case of a mixed effects Cox model, i.e. a single random per-group intercept, is also called a "frailty" model. The approach is based on Ripatti and Palmgren, Biometrics 2002.

Version: 2.2-20
Priority: optional
Depends: survival (≥ 2.36.14), methods, bdsmatrix (≥ 1.3), R (≥ 2.10)
Imports: nlme, Matrix (≥ 1.0)
LinkingTo: bdsmatrix
Suggests: mvtnorm, kinship2
Published: 2024-03-05
DOI: 10.32614/CRAN.package.coxme
Author: Terry M. Therneau [aut, cre]
Maintainer: Terry M. Therneau <therneau.terry at>
License: LGPL-2
Copyright: see file COPYRIGHTS
NeedsCompilation: yes
Materials: NEWS
In views: Agriculture, MixedModels, Survival
CRAN checks: coxme results


Reference manual: coxme.pdf
Vignettes: Mixed Effects Cox Models
Coxme and the Laplace Approximation
The lmekin function
Special Variance Structures


Package source: coxme_2.2-20.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): coxme_2.2-20.tgz, r-oldrel (arm64): coxme_2.2-20.tgz, r-release (x86_64): coxme_2.2-20.tgz, r-oldrel (x86_64): coxme_2.2-20.tgz
Old sources: coxme archive

Reverse dependencies:

Reverse depends: mlma
Reverse imports: bigQF, famSKATRC, highMLR, jstable, MAGNAMWAR, mlmm.gwas, multisite.accuracy, MXM, PenCoxFrail
Reverse suggests: AICcmodavg, car, finalfit, gap, injurytools, insight, multcomp, parameters, tram, tramME
Reverse enhances: emmeans, MuMIn


Please use the canonical form to link to this page.