Skip to content

emmeans

2.0.4Package record

Estimated Marginal Means, aka Least-Squares Means

58packages dependsuggested by 73
2.1Mdownloads / year
26.1%test coverage
13/13flavors OK

Overview

About

Obtain estimated marginal means (EMMs) for many linear, generalized linear, and mixed models. Compute contrasts or linear functions of EMMs, trends, and comparisons of slopes. Plots and other displays. Least-squares means are discussed, and the term "estimated marginal means" is suggested, in Searle, Speed, and Milliken (1980) Population marginal means in the linear model: An alternative to least squares means, The American Statistician 34(4), 216-221 doi:10.1080/00031305.1980.10483031.

Changes in 2.0.4
  • Updated logo (now hexagonal)
  • bug-fix for labelling in pairwise contrasts
  • head() and tail() for emmGrid objects now follow base-R semantics for a negative n (previously the two were effectively swapped)
  • Fixed an error in the atanh response transformation: a typo in its mu.eta derivative (tanh^2(eta)) made type = "response" fail
  • cross.adjust is now correctly ignored (as documented) when the by groups are not all the same size, rather than silently producing mis-shaped (recycled) adjusted P values
  • emmip(..., engine = "lattice") now uses the axis/trace labels again (a typo referenced the wrong object, so the labels were silently dropped)
  • Bug fix regarding cls class assignment

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 9.2 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.0.4
READMEYes · 785 wordsVignettesYes · 16 · dynamicNEWSYes · 100% structured · mentions 2.0.4Citation fileNoWebsiteYes · pkgdown
Help pages
46includes a package overview page
Examples that run
98%42 run in a plain check (4 of them under a condition) · 1 never run
Exported functions with examples
100%
Documented parameters
83%
Return-value docs
93%
Help pages citing references
9%

Downloads

2.1M
CRAN downloads in the past year
Rank #270 · ~5.7K/day · ~171.9K/mo
Daily download trend is not available in this view yet.
154.4K30 days
441.6K90 days
2.1M1 year
Compare downloads with other packages →
Also on23.6K r2u217 autocran79.9K conda_forge1.1K c2d4u

Repository

429Stars
40Forks
3Open issues
0Open PRs
0Releases
858Commits
25Commit identities
858 commits · Last activity 2026-10-09 · +0.7% stars, 30d · Default branch at 2.0.5, ahead of CRAN 2.0.4 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
76%
Median days to close, 50 most recently updated closed issues
4
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-10-08 · 3972026-10-19 · 429
PracticesBeta

7 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/rvlenth/emmeans on 2026-10-11.

Continuous integration (1)
GitHub Actions
Governance and community (2)
Contributing guideIssue templates
Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-10-09 · The repository has a site deploy workflow

pkgdown site last built 2026-10-09

Lint, format, editor (1)
lintr
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
30 external dependencies (excludes base and recommended)

Installing emmeans adds 4 packages (2 with compiled code, 2.1 MB of source tarballs). Heaviest: mvtnorm 1.0 MB, rlang 766 KB, estimability 292 KB.

Depends (1)
R >= 4.1.0
Imports (8)
estimabilitygraphicsmethodsmvtnormnumDerivrlangstatsutils
LinkingTo (0)
none
Enhances (0)
none

Datasets

People & History

People (14)
Maintainer since 2.0.0 (2025), Author · added in 1.10.2
Author, Copyright holder · added in 1.5.3
Contributor · added in 1.10.5
Contributor · added in 1.8.5
Contributor · added in 1.2
Contributor · added in 2.0.4
Contributor · added in 1.8.2
Contributor · added in 1.11.2-8
Contributor · added in 1.8.0
Contributor
Show 4 more contributorsHide 4 contributors
Contributor · added in 1.7.1-1
Contributor · added in 1.5.0
Contributor · added in 2.0.4
Contributor · added in 1.2

Previously maintained by Russell V. Lenth (0.9 to 1.11.2-8).

Listed in earlier versions (2)
no longer listed · 0.9 to 1.11.2
no longer listed · 0.9 to 1.5.2-1
Releases (73)

Pick two releases to compare their code metrics.

Show 67 earlier eventsHide 67 earlier events
  • 1.10.2
    record
    2024-05-20 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.10.1
    record
    2024-04-06 · diff ↗ ·
    added 13 exports
    consec.emmc, del.eff.emmc, dunnett.emmc, eff.emmc, mean_chg.emmc, pairwise.emmc, poly.emmc, revpairwise.emmc, trt.vs.ctrl.emmc, trt.vs.ctrl1.emmc, trt.vs.ctrlk.emmc, tukey.emmc, wtcon.emmc
  • 1.10.0
    record
    2024-01-24 · diff ↗
  • 1.9.0
    record
    2023-12-18 · diff ↗
  • 1.8.9
    record
    2023-10-18 · diff ↗ ·
    added 2 exports
    make.meanint, make.symmint
  • 1.8.8
    record
    2023-08-17 · diff ↗
  • 1.8.7
    record
    2023-06-23 · diff ↗
  • 1.8.6
    record
    2023-05-12 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.8.5
    record
    2023-03-08 · diff ↗
  • 1.8.4-1
    record
    2023-01-17 · diff ↗ ·
    removed 2 exports
    .zi.simulate, I_bet
    added 4 exports
    .hurdle.support, .zi.support, inverse, permute_levels
  • 1.8.3
    record
    2022-12-06 · diff ↗
  • 1.8.2
    record
    2022-10-28 · diff ↗
  • 1.8.1-1
    record
    2022-09-08 · diff ↗ ·
    added 1 export
    emm_example
  • 1.8.0
    record
    2022-08-05 · diff ↗ ·
    removed 5 exports
    pmm, pmmeans, pmmip, pmmobj, pmtrends
    added 2 exports
    meanint, symmint
  • 1.7.5
    record
    2022-06-22 · diff ↗ ·
    added 4 exports
    I_bet, as.mcmc.emm_list, as.mcmc.list.emmGrid, as.mcmc.list.emm_list
  • 1.7.4-1
    record
    2022-05-15 · diff ↗ ·
    added 2 exports
    comb_facs, split_fac
  • R
    R 4.2.0 released · 2022-04-22
  • 1.7.3
    record
    2022-03-27 · diff ↗
  • 1.7.2
    record
    2022-01-04 · diff ↗
  • 1.7.1-1
    record
    2021-11-29 · diff ↗
  • 1.7.0
    record
    2021-09-29 · diff ↗ ·
    added 1 export
    force_regular
  • 1.6.3
    record
    2021-08-20 · diff ↗
  • 1.6.2-1
    record
    2021-07-08 · diff ↗ ·
    added 1 export
    mvcontrast
  • 1.6.1
    record
    2021-06-01 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.6.0
    record
    2021-04-24 · diff ↗
  • 1.5.5-1
    record
    2021-03-21 · diff ↗
  • 1.5.4
    record
    2021-02-03 · diff ↗
  • 1.5.3
    record
    2020-12-09 · diff ↗ ·
    removed 1 export
    CLD
    added 2 exports
    emmip_ggplot, emmip_lattice
  • 1.5.2-1
    record
    2020-10-25 · diff ↗
  • 1.5.2
    record
    2020-10-24 · diff ↗
  • 1.5.1
    record
    2020-09-18 · diff ↗
  • 1.5.0
    record
    2020-08-18 · diff ↗ ·
    removed 1 export
    cld.emmGrid
    added 1 export
    .cmpMM
  • 1.4.8
    record
    2020-06-26 · diff ↗
  • 1.4.7
    record
    2020-05-25 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.4.6
    record
    2020-04-19 · diff ↗ ·
    added 1 export
    pwpm
  • 1.4.5
    record
    2020-03-04 · diff ↗
  • 1.4.4
    record
    2020-01-28 · diff ↗ ·
    added 3 exports
    .combine.terms, .zi.simulate, as.emm_list
  • 1.4.3.01
    record
    2019-11-28 · diff ↗
  • 1.4.3
    record
    2019-11-26 · diff ↗
  • 1.4.2
    record
    2019-10-24 · diff ↗ ·
    added 1 export
    eff_size
  • 1.4.1
    record
    2019-09-12 · diff ↗
  • 1.4
    record
    2019-08-02 · diff ↗ ·
    added 1 export
    .emm_register
  • 1.3.5.1
    record
    2019-06-26 · diff ↗
  • 1.3.5
    record
    2019-06-10 · diff ↗ ·
    removed 1 export
    cld
    added 1 export
    cld.emmGrid
  • R
    R 3.6.0 released · 2019-04-26
  • 1.3.4
    record
    2019-04-21 · diff ↗ ·
    added 1 export
    pwpp
  • 1.3.3
    record
    2019-03-02 · diff ↗
  • 1.3.2
    record
    2019-01-22 · diff ↗ ·
    added 2 exports
    .get.excl, .num.key
  • 1.3.1
    record
    2018-12-14 · diff ↗
  • 1.3.0
    record
    2018-10-26 · diff ↗ ·
    removed 3 exports
    lsm.basis, recover.data, ref.grid
    added 2 exports
    .emm_basis, .recover_data
  • 1.2.4
    record
    2018-09-22 · diff ↗ ·
    added 1 export
    qdrg
  • 1.2.3
    record
    2018-07-18 · diff ↗ ·
    removed 4 exports
    as.mcmc.list.emmGrid, glht.emmGrid, glht.emmlf, modelparm.emmwrap
    added 1 export
    CLD
  • 1.2.2
    record
    2018-06-26 · diff ↗ ·
    added 6 exports
    .std.link.labels, as.mcmc.emmGrid, as.mcmc.list.emmGrid, glht.emmGrid, glht.emmlf, modelparm.emmwrap
  • 1.2.1
    record
    2018-05-21 · diff ↗
  • 1.2
    record
    2018-05-08 · diff ↗ ·
    added 2 exports
    .emm_vignette, hpd.summary
  • R
    R 3.5.0 released · 2018-04-23
  • 1.1.3
    record
    2018-04-01 · diff ↗
  • 1.1.2
    record
    2018-02-24 · diff ↗
  • 1.1
    record
    2018-01-11 · diff ↗ ·
    added 1 export
    joint_tests
  • 1.0
    record
    2017-12-05 · diff ↗ ·
    removed 1 export
    emmGrid
    added 1 export
    emm
  • 0.9.1
    record
    2017-11-05 · diff ↗
  • 0.9
    record
    2017-10-20
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-10-20
Total releases
73 / 9 yrs
License
GPL-2 | GPL-3 OSI
Minimum R
≥ 4.1.0
Bundled data
4.9 KB / 9 files
Download size
1.7 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("emmeans")
Piaskowski, J., Banfai, B., Bolker, B., Buerkner, P., Derumigny, A., Giné-Vázquez, I., Hervé, M., Jung, M., Lenth, R. V., Love, J., Miguez, F., Riebl, H., Schmidt, P., & Singmann, H. (2026). emmeans: Estimated Marginal Means, aka Least-Squares Means (Version 2.0.4) [Computer software]. https://doi.org/10.32614/CRAN.package.emmeans

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for emmeans version 2.0.4 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy