Solving Mixed Model Equations in R
Overview
Structural multivariate-univariate linear mixed model solver for estimation of multiple random effects with unknown variance-covariance structures (e.g., unstructured, diagonal, autoregressive, factor analytic, reduced rank, among others) and known covariance among levels of random effects (e.g., pedigree and genomic relationship matrices) (Covarrubias-Pazaran, 2016 doi:10.1371/journal.pone.0156744; Maier et al., 2015 doi:10.1016/j.ajhg.2014.12.006; Jensen et al., 1997). REML estimates can be obtained using the Direct-Inversion Newton-Raphson and Direct-Inversion Average Information algorithms for the problems r x r (r being the number of records) or using the Henderson-based average information algorithm for the problem c x c (c being the number of coefficients to estimate).
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
Show 3 earlier changesHide 3 earlier changes
- NOTE12 OK, 2 NOTE2026-04-10
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-09
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 71includes a package overview page
- Examples that run
- 56%36 run in a plain check · 22 never run · 6 hold no code
- Exported functions with examples
- 91%
- Documented parameters
- 100%
- Return-value docs
- 99%
- Help pages citing references
- 34%
- Factor analytic and reduced rank models in sommer HTML
- Generalized linear mixed models with sommer HTML
- Genetic evaluation with known variance components in sommer HTML
- GxE models in sommer HTML
- Inside sommer: the ai_mme_sp2 engine HTML
- Quantitative genetics using the sommer package HTML
- Spatial modeling using the sommer package HTML
- Theory: how sommer parameterizes and optimizes covariance structures HTML
- translate lme4 to sommer HTML
- Using covariance structures with sommer HTML
Downloads
Repository
- PRs merged (all time)
- 96%
- Median days to close, 50 most recently updated closed issues
- 58
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
Commit identities over time
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/covaruber/sommer on 2026-10-11.
GitHub Pages site last deployed 2026-10-06 · The repository has a site deploy workflow
Dependencies
Installing sommer adds 6 packages (3 with compiled code, 6.8 MB of source tarballs). Heaviest: enhancer 2.3 MB, Rcpp 1.8 MB, RcppEigen 1.7 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 4.4.87Latest2026-10-04 · current release · diff ↗ ·
removed 3 exports
AR1, CS, ARMAadded 29 exports
strm, ar1m, ar2m, ar3m, dsumm, mam, fam, antem, corgm, ownm, rrm, maternm, toeplitzm, sar, car, metricm, postPEV, APY, loadings_mmes, scores_mmes, covparams_mmes, covparams_mmes_se, meffects_mmes, wald_mmes, rotate_back_mmes, binm, familym, stackTraits, covmatrix_mmes - 4.4.72026-09-11 · diff ↗
- 4.4.62026-07-09 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 4.4.52026-03-25 · diff ↗
- 4.4.42025-11-26 · diff ↗ ·
removed 24 exports
transp, jet.colors, bathy.colors, LD.decay, manhattan, map.plot, atcg1234BackTransform, rrm, overlay, redmm, add.diallel.vars, bbasis, tps, atcg1234, build.HMM, neMarker, adiag1, imputev, propMissing, logspace, stan, leg, wald.test, simGECorMatadded 6 exports
MNR, unsm2, usr, dsr, csr, atr - 4.4.3
- 4.4.2
- RR 4.5.0 released · 2025-04-11
- 4.4.12025-04-04 · diff ↗ ·
removed 38 exports
mmec, atr, csr, dsr, usr, gvsr, atc, csc, dsc, usc, vsc, isc, rrc, covc, fcm, list2usmat, transformConstraints, bivariateRun, spl2Da, spl2Db, EM, MEMMA, AI, summary.mmer, residuals.mmer, fitted.mmer, coef.mmer, anova.mmer, plot.mmer, predict.mmer and 8 moreadded 16 exports
mmes, atm, csm, dsm, usm, vsm, ism, rrm, covm, summary.mmes, residuals.mmes, fitted.mmes, coef.mmes, anova.mmes, plot.mmes, predict.mmes - 4.3.72025-02-03 · diff ↗
- 4.3.62024-10-20 · diff ↗
- 4.3.5
- RR 4.4.0 released · 2024-04-24
- 4.3.4
- 4.3.32023-11-13 · diff ↗
Show 62 earlier eventsHide 62 earlier events
- 4.3.2
- 4.3.1
- 4.3.0
- RR 4.3.0 released · 2023-04-21
- 4.2.1.2
- 4.2.0.12023-01-08 · diff ↗
- 4.2.02022-09-11 · diff ↗
- 4.1.92022-09-09 · diff ↗
- 4.1.8
- 4.1.72022-06-16 · diff ↗ ·
removed 9 exports
mmer2, GWAS2, at, cs, ds, us, gvs, uncm, h2.funadded 22 exports
mmec, atr, csr, dsr, usr, vsr, gvsr, atc, csc, dsc, usc, vsc, isc, spl2Dc, AI, summary.mmec, residuals.mmec, fitted.mmec, coef.mmec, anova.mmec, plot.mmec, pmonitor - RR 4.2.0 released · 2022-04-22
- 4.1.62022-04-17 · diff ↗
- 4.1.52021-12-15 · diff ↗ ·
removed 1 export
spl2Dadded 5 exports
spl2Da, spl2Db, spl2Dmats, bbasis, tpsmmbwrapper - 4.1.42021-07-29 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 4.1.3
- 4.1.22021-01-06 · diff ↗ ·
removed 4 exports
fill.design, pedtoK, spatPlots, pinadded 4 exports
LD.decay, dfToMatrix, vpredict, H.mat - 4.1.1
- 4.1.0
- RR 4.0.0 released · 2020-04-24
- 4.0.92020-02-07 · diff ↗
- 4.0.82019-11-01 · diff ↗
- 4.0.42019-08-24 · diff ↗
- 4.0.1
- RR 3.6.0 released · 2019-04-26
- 3.9.32019-04-04 · diff ↗
- 3.9.12019-03-26 · diff ↗
- 3.8
- 3.7.32018-12-10 · diff ↗
- 3.7.22018-12-09 · diff ↗
- 3.7.12018-12-07 · diff ↗
- 3.72018-12-04 · diff ↗ ·
removed 30 exports
hits, big.peaks.col, blocker, blockerL, blockerT, brewer.pal, design.score, fdr, fdr2, hadamard.prod, hdm, is.diagonal.matrix, is.square.matrix, matrix.trace, maxi.qtl, MNR, nna, phase.F1, score.calcMV, vctable, vctable.help, summary.MMERM, residuals.MMERM, fitted.MMERM, plot.MMERM, variogram, variogram.MMERM, plot.variogram.MMERM, anova.MMERM, coef.MMERMadded 22 exports
at, cs, ds, us, vs, unsm, uncm, fixm, fcm, list2usmat, spl2D, leg, AR1, CS, ARMA, summary.mmer, residuals.mmer, fitted.mmer, plot.mmer, predict.mmer, anova.mmer, coef.mmer - 3.62018-10-08 · diff ↗
- 3.5
- RR 3.5.0 released · 2018-04-23
- 3.42018-04-06 · diff ↗
- 3.3
- 3.22018-01-09 · diff ↗ ·
added 7 exports
AI, build.HMM, EM, h2.fun, variogram, variogram.MMERM, plot.variogram.MMERM - 3.1
- 3.02017-08-24 · diff ↗ ·
removed 31 exports
AI, AImme, ai2help, eigenGWAS, EM, EM2, EMMA, LD.decay, mmerSNOW, MMERM, MAI, MAI2, name.change, NR, NR22, PEV, poe, score.calc, TP.prep, summary.mmer, summary.mmerM, residuals.mmer, residuals.mmerM, fitted.mmer, fitted.mmerM, plot.mmer, plot.mmerM, anova.mmer, anova.mmerM, coef.mmer and 1 moreadded 9 exports
blockerL, blockerT, eig, grp, GWAS, GWAS2, score.calcMV, vctable, vctable.help - 2.92017-07-08 · diff ↗
- 2.8
- RR 3.4.0 released · 2017-04-21
- 2.7
- 2.6
- 2.5
- 2.42016-12-01 · diff ↗
- 2.3
- 2.2
- 2.1
- 2.02016-07-29 · diff ↗ ·
removed 3 exports
AI2, AI3, EMMAMadded 5 exports
ai2help, MEMMA, MAI, MAI2, MNR - 1.92016-07-01 · diff ↗ ·
removed 1 export
bagadded 12 exports
hits, eigenGWAS, EMMAM, manhattan, MMERM, PEV, summary.MMERM, residuals.MMERM, fitted.MMERM, plot.MMERM, anova.MMERM, coef.MMERM - 1.82016-06-06 · diff ↗ ·
removed 1 export
R.matadded 14 exports
hadamard.prod, is.diagonal.matrix, is.square.matrix, matrix.trace, maxi.qtl, mmerSNOW, phase.F1, S.mat, summary.mmerM, residuals.mmerM, fitted.mmerM, plot.mmerM, anova.mmerM, coef.mmerM - 1.7
- 1.6
- 1.5
- RR 3.3.0 released · 2016-05-03
- 1.4
- 1.3
- 1.2
- 1.12016-01-24
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2016-01-24
- Total releases
- 66 / 10 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 1.2 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("sommer")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.