print.summary.glht {NCStats}R Documentation

Modificaton of print.summary.glht() and print.confint.glth() to streamline output.

Description

Modifies the print.summary.glht() and confint.summary.glht() functions so that the output is less verbose. For example, several labels and some intermediate calculations will not be printed unless asked for. In addition, several ‘extra’ blank lines were removed.

Usage

## S3 method for class 'summary.glht'
print(x, digits = max(3, getOption("digits") - 3),
  signif.stars = getOption("show.signif.stars"), justResults = TRUE, ...)

## S3 method for class 'confint.glht'
print(x, digits = max(3, getOption("digits") - 3),
  justResults = TRUE, ...)

Arguments

x

An object of class summary.glht or confint.glht to be printed

digits

A single numeric that indicates the number of digits to use

signif.stars

A logical that if =TRUE then ‘significance stars’ will be printed for each coefficient

justResults

A single logical that indicates whether just the most pertinent numerical results are printed (=TRUE; default) or all information as in the default functions from multcomp

...

Not implemented.

Value

Invisibly returns the sent x.

Examples

# from glht() in multcomp
if (require(multcomp)) {
  amod <- aov(breaks ~ tension, data = warpbreaks)
  mc1 <- glht(amod, linfct = mcp(tension = "Tukey"))
  # new printing versions
  summary(mc1)
  confint(mc1)
  # nearly the same as the original functions
  print(summary(mc1),justResults=FALSE)
  print(confint(mc1),justResults=FALSE)
}


[Package NCStats version 0.4.7 Index]