Skip to content

lsmeans

2.30-2Package record

Least-Squares Means

1packages dependsuggested by 1
134.5Kdownloads / year
41.2%test coverage
13/13flavors OK

Overview

About

Obtain least-squares means for linear, generalized linear, and mixed models. Compute contrasts or linear functions of least-squares means, and comparisons of slopes. Plots and compact letter displays. Least-squares means were proposed in Harvey, W (1960) "Least-squares analysis of data with unequal subclass numbers", Tech Report ARS-20-8, USDA National Agricultural Library, and discussed further 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. NOTE: lsmeans now relies primarily on code in the 'emmeans' package. 'lsmeans' will be archived in the near future.

Changes in 2.30-2

Fixed documentation links to emmeans help pages

Removed datasets that are duplicated from 'emmeans'

From inst/NEWS in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.5 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.30-2
READMEYes · 96 wordsVignettesNoNEWSYes · 100% structured · mentions 2.30-2Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Cites a JSS article
Help pages
4includes a package overview page
Examples that run
100%1 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
50%

Downloads

134.5K
CRAN downloads in the past year
Rank #1,207 · ~369/day · ~11.2K/mo
Daily download trend is not available in this view yet.
8.3K30 days
27.2K90 days
134.5K1 year
Compare downloads with other packages →
Also on685 r2u263 autocran1.9K conda_forge132 c2d4u

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)

Installing lsmeans adds 5 packages (2 with compiled code, 3.8 MB of source tarballs). Heaviest: emmeans 1.7 MB, mvtnorm 1.0 MB, rlang 766 KB.

Depends (3)
R >= 3.2emmeansmethods
Imports (0)
none
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer, Copyright holder · added in 2.20

Maintainer since 0.9 (2012)

Listed in earlier versions (5)
Show 5 peopleHide 5 people
The University of Iowa
no longer listed · 0.9
no longer listed · 0.9 to 2.19
no longer listed · 2.13 to 2.19
Maxime Herv\\'e
no longer listed · 2.20 to 2.22-1
no longer listed · 2.27-2 to 2.27-62
Releases (50)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 3.0.3Latest
    record
    2014-03-02 · current release · diff ↗ ·
    removed 1 export
    pattern:^[[:alpha:]]+
    added 15 exports
    cld, pattern:*.lsmc, as.glht, contrast, lsm, lsm.basis, lsmeans, lsmeans.character, lsmip, lstrends, nonest.basis, recover.data, ref.grid, test, .old.lsmeans
  • 3.0.2
    record
    2013-07-19 · diff ↗
  • 2.30-2
    record
    2025-03-24 · diff ↗
Show 49 earlier eventsHide 49 earlier events

Package metadata

First published
2012-08-15
Total releases
50 / 14 yrs
License
GPL-2 | GPL-3 OSI
Minimum R
≥ 3.2
Download size
16 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' entry:

citation("lsmeans")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.18637/jss.v069.i01.

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 lsmeans version 2.30-2 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, 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