R/summary.TukeyC.R

Defines functions summary.TukeyC

Documented in summary.TukeyC

##
## S3 method to sumarize 'TukeyC' object
##

summary.TukeyC <- function(object,
                           complete=TRUE, ...)
{
  if(!inherits(object,
               'TukeyC'))
    stop("Use only with \"TukeyC\" objects!")

  if(complete){
    cat('Goups of means at sig.level =',
        object$out$Sig.level,
        '\n')

    print(object$out$Result)

    cat('\nMatrix of the difference of means above diagonal and')

    cat('\nrespective p-values of the Tukey test below diagonal values\n')

    print(object$out$Diff_Prob)

  } else { 
    res <- object$out$Result

    res
  }
}                   

Try the TukeyC package in your browser

Any scripts or data that you put into this service are public.

TukeyC documentation built on Aug. 31, 2023, 5:06 p.m.