Skip to content

emmeans

2.0.4

Estimated Marginal Means, aka Least-Squares Means

124packages depend
2Mdownloads / year
26.1%test coverage
13/13checks pass

Overview

About
Maintained by Julia PiaskowskiFirst published 2017-10-2073 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 9.2 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.02
26.1%
Coverage · measured lines
100%
Documentation · exports
8
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 785 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
98%
Documented parameters
83%
Return-value docs
93%
References docs
9%

Downloads

2M
CRAN downloads in the past year
Rank #262 · ~5.6K/day · ~170.4K/mo
Daily download trend is not available in this view yet.
150.9K30 days
517.9K90 days
2M1 year
Compare downloads with other packages →
Also on21K r2u239 autocran69.7K conda_forge838 c2d4u

Repository

Repository
420Stars
39Forks
2Open issues
0Open PRs
0Releases
808Commits
24Contributors
808 commits · Last activity 2026-07-21 · +0.5% stars, 30d

Stars over time

2025-07-05 · 3862026-07-07 · 419

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/rvlenth/emmeans on 2026-07-19.

Continuous integration (1)
GitHub Actions
Governance and community (1)
Issue templates
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
30 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Imports (8)
estimabilitygraphicsmethodsmvtnormnumDerivrlangstatsutils
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Code Composition
R 17,793 (57%)Vignettes 7,191 (23%)Rd 6,053 (20%)
Code characteristics
Object systems
S3153S4 class1S4 method1
Cyclomatic complexity
2.0 median / 117 max
Test cases
21 / 0.02 per code line

Test coverage

Line coverage

26%

Expression

26.9%

Tests / Examples

26.1% / 57% ex

Functions

354 83 exported

Complexity

5.8 avg / 117 max

Call network

354 nodes / 459 edges

Loading call graph…

Lowest coverage

354 functions
FunctionCycloCoverage
.aovlist.dffun exp30%
.combine.terms exp10%
.emm_register exp30%
.emm_vignette exp10%
.get.offset exp20%
.hurdle.support exp50%

Datasets

Bundled datasets · 8
NameClassRows × ColsAlso ships in
MOatsdata.frame18 × 3
auto.noisedata.frame36 × 4
feedlotdata.frame67 × 4
fiberdata.frame15 × 3
neuralgiadata.frame60 × 5
nutritiondata.frame107 × 4
orangesdata.frame36 × 6
pigsdata.frame29 × 3

People & History

People (14)
Maintainer (1)
Maintainer, Author · added in 1.10.2
Authors (2)
Maintainer, Author · added in 1.10.2
Author, Copyright holder · added in 1.5.3
Contributors (12)
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 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
Copyright holders (1)
Author, Copyright holder · added in 1.5.3
Listed in earlier versions (2)
no longer listed · 0.9 to 1.11.2
no longer listed · 0.9 to 1.5.2-1
Package Timeline

73 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 2.0.4Latest
    2026-07-15 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 2.0.3
    2026-04-09 · diff ↗
  • 2.0.2
    2026-03-05 · diff ↗
  • 2.0.1
    2025-12-16 · diff ↗
  • 2.0.0
    2025-10-29 · diff ↗
  • 1.11.2-8
    2025-08-28 · diff ↗
  • 1.11.2
    2025-07-11 · diff ↗
  • 1.11.1
    2025-05-04 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.11.0
    2025-03-20 · diff ↗
  • 1.10.7
    2025-01-31 · diff ↗
  • 1.10.6
    2024-12-12 · diff ↗
  • 1.10.5
    2024-10-14 · diff ↗
  • 1.10.4
    2024-08-21 · diff ↗
  • 1.10.3
    2024-07-01 · diff ↗
Show 67 earlier events

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.5 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →