print.glht: Modificaton of print.summary.glht() and print.confint.glth()...

Description Usage Arguments Value Examples

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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)
}

droglenc/NCStats documentation built on June 5, 2021, 2:06 p.m.