IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v069i01.html
   My bibliography  Save this article

Least-Squares Means: The R Package lsmeans

Author

Listed:
  • Lenth, Russell V.

Abstract

Least-squares means are predictions from a linear model, or averages thereof. They are useful in the analysis of experimental data for summarizing the effects of factors, and for testing linear contrasts among predictions. The lsmeans package (Lenth 2016) provides a simple way of obtaining least-squares means and contrasts thereof. It supports many models fitted by R (R Core Team 2015) core packages (as well as a few key contributed ones) that fit linear or mixed models, and provides a simple way of extending it to cover more model classes.

Suggested Citation

  • Lenth, Russell V., 2016. "Least-Squares Means: The R Package lsmeans," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 69(i01).
  • Handle: RePEc:jss:jstsof:v:069:i01
    DOI: http://hdl.handle.net/10.18637/jss.v069.i01
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v069i01/v69i01.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v069i01/lsmeans_2.22.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v069i01/v69i01.R
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v069.i01?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Hadfield, Jarrod D., 2010. "MCMC Methods for Multi-Response Generalized Linear Mixed Models: The MCMCglmm R Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 33(i02).
    2. Bates, Douglas & Mächler, Martin & Bolker, Ben & Walker, Steve, 2015. "Fitting Linear Mixed-Effects Models Using lme4," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 67(i01).
    3. Halekoh, Ulrich & Højsgaard, Søren, 2014. "A Kenward-Roger Approximation and Parametric Bootstrap Methods for Tests in Linear Mixed Models The R Package pbkrtest," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 59(i09).
    4. Fox, John & Hong, Jangman, 2009. "Effect Displays in R for Multinomial and Proportional-Odds Logit Models: Extensions to the effects Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 32(i01).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Sebastian Loth & Katharina Jettka & Manuel Giuliani & Stefan Kopp & Jan P de Ruiter, 2018. "Confidence in uncertainty: Error cost and commitment in early speech hypotheses," PLOS ONE, Public Library of Science, vol. 13(8), pages 1-30, August.
    2. King, K.W. & Hanrahan, B.R. & Stinner, J. & Shedekar, V.S., 2022. "Field scale discharge and water quality response, to drainage water management," Agricultural Water Management, Elsevier, vol. 264(C).
    3. Alexander Robitzsch, 2021. "A Comprehensive Simulation Study of Estimation Methods for the Rasch Model," Stats, MDPI, vol. 4(4), pages 1-23, October.
    4. Roman Lyach, 2021. "Harvest Rates of Rheophilic Fish Vimba vimba , Chondrostoma nasus , and Barbus barbus Have a Strong Relationship with Restocking Rates and Harvest Rates of Their Predator Silurus glanis in Lowland Mes," Sustainability, MDPI, vol. 13(20), pages 1-14, October.
    5. Krieg Sabine & Boonstra Harm Jan & Smeets Marc, 2016. "Small-Area Estimation with Zero-Inflated Data – a Simulation Study," Journal of Official Statistics, Sciendo, vol. 32(4), pages 963-986, December.
    6. Gesche Janzarik & Daniel Wollschläger & Michèle Wessa & Klaus Lieb, 2022. "A Group Intervention to Promote Resilience in Nursing Professionals: A Randomised Controlled Trial," IJERPH, MDPI, vol. 19(2), pages 1-18, January.
    7. Rúna Í. Magnússon & Alexandra Hamm & Sergey V. Karsanaev & Juul Limpens & David Kleijn & Andrew Frampton & Trofim C. Maximov & Monique M. P. D. Heijmans, 2022. "Extremely wet summer events enhance permafrost thaw for multiple years in Siberian tundra," Nature Communications, Nature, vol. 13(1), pages 1-10, December.
    8. Bawan Amin & Dómhnall J Jennings & Alison Norman & Andrew Ryan & Vasiliki Ioannidis & Alice Magee & Hayley-Anne Haughey & Amy Haigh & Simone Ciuti, 2022. "Neonate personality affects early-life resource acquisition in a large social mammal [An analysis of vigilance in the Spanish ibex (Capra pyrenaica)]," Behavioral Ecology, International Society for Behavioral Ecology, vol. 33(5), pages 1025-1035.
    9. Rotheram-Borus, Mary Jane & Tomlinson, Mark & Worthman, Carol M. & Norwood, Peter & le Roux, Ingrid & O'Connor, Mary J., 2023. "Maternal depression, alcohol use, and transient effects of perinatal paraprofessional home visiting in South Africa: Eight-year follow-up of a cluster randomized controlled trial," Social Science & Medicine, Elsevier, vol. 324(C).
    10. Zhang, Zhengzheng & Parker, Richard M. A. & Charlton, Christopher M. J. & Leckie, George & Browne, William J., 2016. "R2MLwiN: A Package to Run MLwiN from within R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 72(i10).
    11. JANSSENS, Jochen & DE CORTE, Annelies & SÖRENSEN, Kenneth, 2016. "Water distribution network design optimisation with respect to reliability," Working Papers 2016007, University of Antwerp, Faculty of Business and Economics.
    12. Martin, Manon & Govaerts, Bernadette, 2019. "LiMM-PCA : combining ASCA+ and linear mixed models to analyse high dimensional designed data," LIDAM Discussion Papers ISBA 2019021, Université catholique de Louvain, Institute of Statistics, Biostatistics and Actuarial Sciences (ISBA).
    13. Raymond Hernandez & Elizabeth A. Pyatak & Cheryl L. P. Vigen & Haomiao Jin & Stefan Schneider & Donna Spruijt-Metz & Shawn C. Roll, 2021. "Understanding Worker Well-Being Relative to High-Workload and Recovery Activities across a Whole Day: Pilot Testing an Ecological Momentary Assessment Technique," IJERPH, MDPI, vol. 18(19), pages 1-17, October.
    14. Christopher Hassall & Michael Nisbet & Evan Norcliffe & He Wang, 2024. "The Potential Health Benefits of Urban Tree Planting Suggested through Immersive Environments," Land, MDPI, vol. 13(3), pages 1-12, February.
    15. Jie Zhao & Ji Chen & Damien Beillouin & Hans Lambers & Yadong Yang & Pete Smith & Zhaohai Zeng & Jørgen E. Olesen & Huadong Zang, 2022. "Global systematic review with meta-analysis reveals yield advantage of legume-based rotations and its drivers," Nature Communications, Nature, vol. 13(1), pages 1-9, December.
    16. F J Heather & D Z Childs & A M Darnaude & J L Blanchard, 2018. "Using an integral projection model to assess the effect of temperature on the growth of gilthead seabream Sparus aurata," PLOS ONE, Public Library of Science, vol. 13(5), pages 1-19, May.
    17. Valentina Krenz & Arjen Alink & Tobias Sommer & Benno Roozendaal & Lars Schwabe, 2023. "Time-dependent memory transformation in hippocampus and neocortex is semantic in nature," Nature Communications, Nature, vol. 14(1), pages 1-17, December.
    18. Wolfgang Goymann & John C. Wingfield, 2014. "Male-to-female testosterone ratios, dimorphism, and life history—what does it really tell us?," Behavioral Ecology, International Society for Behavioral Ecology, vol. 25(4), pages 685-699.
    19. Morán-Ordóñez, Alejandra & Ameztegui, Aitor & De Cáceres, Miquel & de-Miguel, Sergio & Lefèvre, François & Brotons, Lluís & Coll, Lluís, 2020. "Future trade-offs and synergies among ecosystem services in Mediterranean forests under global change scenarios," Ecosystem Services, Elsevier, vol. 45(C).
    20. Jack McDonnell & Thomas McKenna & Kathryn A. Yurkonis & Deirdre Hennessy & Rafael Andrade Moral & Caroline Brophy, 2023. "A Mixed Model for Assessing the Effect of Numerous Plant Species Interactions on Grassland Biodiversity and Ecosystem Function Relationships," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 28(1), pages 1-19, March.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jss:jstsof:v:069:i01. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.