R/print_seastests.R

Defines functions print.seasinttests

#' Generic function for class seastests 
#' 
#' @param x result from seasonality test
#' @param ... additional arguments 
#' @author Daniel Ollech
#' @examples a <- qs(ts(rnorm(120, 10,10), frequency=12))
#' print(a)
#' summary(a)
#' @export


print.seastests <- print.seasinttests <- function(x, ...) {
  cat("Test used: ", x$test, "\n", "\n")
  cat("Test statistic: ", round(x$stat,2), "\n")
  cat("P-value: ", x$Pval)
  cat("\n")
}

Try the seastests package in your browser

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

seastests documentation built on Sept. 18, 2021, 5:07 p.m.