meansComp: Perform pairwise means comparisons

View source: R/meansComp.R

meansCompR Documentation

Perform pairwise means comparisons

Description

Perform means comparisons and give groups of means that are not significantly different.

Usage

meansComp(object, spec, graph=TRUE, ...) 
    

Arguments

object

A fitted model object that is supported, such as the result of a call to LinearModel, lm or aov.

spec

A character vector specifying the names of the predictors over which means comparisons are desired. specs may also be a formula or a list (optionally named) of valid specs. Use of formulas is described in the Overview section below.

graph

Boolean; plot the graph to compare the means.

...

other arguments, cf the function emmeans.

Author(s)

Francois Husson francois.husson@institut-agro.fr

See Also

plot.meansComp

Examples

  data(senso)
  res <- LinearModel(Score~ Product + Day , data=senso, selection="none")
  meansComp(res,~Product)
  
## Not run: 
  ## and with the sidak correction
  meansComp(res,~Product,adjust="sidak")

## End(Not run)

FactoMineR documentation built on May 29, 2024, 3:36 a.m.