lsmeans: Least-Squares Means

Obtain least-squares means for many 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: Users are encouraged to switch to the 'emmeans' package, as 'lsmeans' will be archived in the not-too-distant future.

Version: 2.27-62
Depends: methods, R (≥ 3.2)
Imports: estimability, graphics, stats, utils, nlme, coda (≥ 0.17), multcomp, plyr, mvtnorm, xtable (≥ 1.8-2)
Suggests: car, lattice, MCMCpack, mediation, multcompView, ordinal, pbkrtest (≥ 0.4-1), CARBayes, coxme, gee, geepack, glmmADMB, lme4, lmerTest (≥ 2.0.32), MASS, MCMCglmm, nnet, pscl, rsm, rstan, rstanarm, survival
Published: 2018-05-11
Author: Russell Lenth [aut, cre, cph], Jonathon Love [ctb]
Maintainer: Russell Lenth <russell-lenth at>
License: GPL-2 | GPL-3
NeedsCompilation: no
Citation: lsmeans citation info
Materials: README NEWS
In views: SocialSciences, Survival
CRAN checks: lsmeans results


Reference manual: lsmeans.pdf
Vignettes: Using lsmeans
Package source: lsmeans_2.27-62.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X binaries: r-release: lsmeans_2.27-62.tgz, r-oldrel: lsmeans_2.27-62.tgz
Old sources: lsmeans archive

Reverse dependencies:

Reverse imports: StroupGLMM
Reverse suggests: broom, standardize


Please use the canonical form to link to this page.