Learn R Programming

lsmeans (version 2.12)

lsmeans-package: Least-squares means

Description

This package provides methods for obtaining so-called least-squares means for factor combinations in a variety of fitted linear models. It can also compute contrasts or linear combinations of these least-squares means, (several standard contrast families are provided), and in addition can estimate and contrast slopes of trend lines. Popular adjustments for multiple-comparisons are provided, as well as graphical ways of displaying the results.

Arguments

Additional information

Examples and discussion are available via vignette("using-lsmeans", package="lsmeans"). Some features of the lsmeans require (or are enhanced by) additional packages that are loaded when needed. Since they are not required packages, they are not automatically installed with lsmeans. We highly recommend that users also install the following packages: multcomp (if cld, glht, or as.glht are to be used), multcompView (for cld), lattice (for plot and lsmip), and pbkrtest (for models fitted by the lme4 package). Starting with lsmeans version 2, a new object framework based on reference grids is used that increases flexibility and provides for extending its capabilities to additional model objects. Use vignette("lsmeans-changes") for information on the user impact of these changes. It is possible to write your own interfaces for models not yet supported by lsmeans. See the help page extending-lsmeans and vignette("extending") for details on how to do this.

Details

ll{ Package: lsmeans Type: Package License: GPL-2 Other information: See DESCRIPTION }