R/GSAfisher_print.R

Defines functions print.GSAfisher

Documented in print.GSAfisher

#' A print method for the class GSAfisher
#'
#' This prints the GSAfisher estatistic value
#' @param obj The object you want to calculate the GSAfisher estatistic value
#' @keywords GSAfisher
#' @export
#' @examples
#' p.val <- runif(1000,0,0.25)
#' class(p.val) <- "GSAfisher"
#' print(p.val)

print.GSAfisher <- function(obj,...) {
  value <- sum(-2*log(obj))
  cat("The GSAfisher estatistic value from your object is",value)
}
obaeza16/oscar.baeza.package documentation built on June 5, 2020, 12:34 a.m.