R/CVpMethods.R

Defines functions print.CVp

Documented in print.CVp

#------------------------------------------------------------------------------
# print and summary S3 methods for nice printing of pooled CV
# 
# Author: dlabes
#------------------------------------------------------------------------------

print.CVp <- function(x, digits = 4, verbose=FALSE, ...)
{
  if (verbose){
    cat("Pooled CV = ",format(x$CV,digits=digits), 
        " with ", x$df, " degrees of freedom", sep="")
    if (!is.null(x$robust)) {if (x$robust) cat(" (robust df's)")}
    cat("\n")
    cat("Upper ",(1-x$alpha)*100,"% confidence limit of CV = ", 
        format(x$CVupper, digits=digits),"\n",sep="")
  } else {
    cat(format(x$CV,digits=digits), " with ", x$df, 
        " degrees of freedom", sep="")
    if (!is.null(x$robust)) {if (x$robust) cat(" (robust df's)")}
    cat("\n")
  }
  invisible(x)
}

Try the PowerTOST package in your browser

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

PowerTOST documentation built on March 18, 2022, 5:47 p.m.