Other packages > Find by keyword >

lsmeans  

Least-Squares Means
View on CRAN: Click here


Download and install lsmeans package within the R console
Install from CRAN:
install.packages("lsmeans")

Install from Github:
library("remotes")
install_github("cran/lsmeans")

Install by package version:
library("remotes")
install_version("lsmeans", "2.30-2")



Attach the package and use:
library("lsmeans")
Maintained by
Russell Lenth
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2012-08-15
Latest Update: 2025-03-24
Description:
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 . NOTE: lsmeans now relies primarily on code in the 'emmeans' package. 'lsmeans' will be archived in the near future.
How to cite:
Russell Lenth (2012). lsmeans: Least-Squares Means. R package version 2.30-2, https://cran.r-project.org/web/packages/lsmeans. Accessed 05 Jun. 2026.
Previous versions and publish date:
0.9 (2012-08-15 07:19), 0.99-80 (2012-09-20 08:15), 0.99 (2012-08-27 16:34), 1.00-00 (2012-10-19 19:56), 1.05-00 (2012-11-02 14:35), 1.05-01 (2012-12-05 19:26), 1.06-05 (2013-02-14 07:35), 1.06-06 (2013-06-14 07:01), 1.10-00 (2013-07-04 21:48), 1.10-01 (2013-07-19 18:01), 1.10-2 (2013-09-30 17:38), 1.10-3 (2013-11-29 18:20), 1.10-4 (2013-12-04 21:16), 2.00-1 (2014-03-03 00:28), 2.00-4 (2014-03-24 15:25), 2.00-5 (2014-04-10 09:18), 2.05 (2014-05-10 19:24), 2.10 (2014-06-25 00:05), 2.11 (2014-07-31 07:18), 2.12 (2014-09-23 22:20), 2.13 (2014-11-14 01:01), 2.14 (2015-01-06 23:36), 2.15 (2015-02-07 10:43), 2.16 (2015-03-14 23:36), 2.17 (2015-04-16 19:53), 2.18 (2015-06-01 09:54), 2.19 (2015-07-26 22:51), 2.20-2 (2015-09-02 15:52), 2.20-23 (2015-10-10 22:50), 2.20 (2015-08-29 10:01), 2.21-1 (2015-12-17 16:09), 2.21 (2015-12-04 21:43), 2.22-1 (2016-02-07 22:04), 2.22 (2016-01-26 22:26), 2.23-5 (2016-07-18 20:13), 2.23 (2016-03-10 08:00), 2.24 (2016-10-21 10:32), 2.25-5 (2017-03-09 08:18), 2.25 (2016-11-19 10:15), 2.26-3 (2017-05-09 09:18), 2.27-2 (2017-08-28 16:41), 2.27-60 (2017-11-02 02:02), 2.27-61 (2017-11-05 16:03), 2.27-62 (2018-05-11 13:03), 2.30-0 (2018-11-03 00:50)
Other packages that cited lsmeans R package
View lsmeans citation profile
Other R packages that lsmeans depends, imports, suggests or enhances
Complete documentation for lsmeans
Functions, R codes and Examples using the lsmeans R package
Some associated functions: auto.noise . lsmeans-package . ref.grid-class . ref.grid . transition . 
Some associated R codes: S4-classes.R . ref.grid.R . zzz.R .  Full lsmeans package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
crossurr  
Cross-Fitting for Doubly Robust Evaluation of High-Dimensional Surrogate Markers
Doubly robust methods for evaluating surrogate markers as outlined in: Agniel D, Hejblum BP, Thiebau ...
Download / Learn more Package Citations See dependency  
envirem  
Generation of ENVIREM Variables
Generation of bioclimatic rasters that are complementary to the typical 19 bioclim variables. ...
Download / Learn more Package Citations See dependency  
msm  
Multi-State Markov and Hidden Markov Models in Continuous Time
Functions for fitting continuous-time Markov and hidden Markov multi-state models to longitudinal d ...
Download / Learn more Package Citations See dependency  
ibb  
R Wrapper for Istanbul Municipality Open Data Portal
Call wrappers for Istanbul Metropolitan Municipality's Open Data Portal (Turkish: Istanbul B ...
Download / Learn more Package Citations See dependency  

27,268

R Packages

233,548

Dependencies

72,590

Author Associations

27,205

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA