R/summary.R

Defines functions print.AF summary.AF

Documented in print.AF summary.AF

#' Summary Function for Objects of "AF" Class
#'
#' @param object An object of "AF" class.
#' @param ... Optional arguments for \code{summary}.
#'
#' @return Method used; P-value; basis functions used;
#' CpG sites combined into the test statistic.
#'
#' @export
#'
#' @usage \method{summary}{AF}(object, ...)
#'
summary.AF <- function(object, ...){
  cat("Method:\n")
  cat(paste(object$method, "\n"))
  cat("\n")
  cat("P-value:\n")
  print(object$pv)
  cat("\n")
  cat("CpG sites combined into test statistic:\n")
  print(object$indexes)
}


#' Print Function for Objects of "AF" Class
#'
#' @param x An object of "AF" class.
#' @param ... Optional arguments for \code{print}.
#'
#' @return Method used; P-value; basis functions used;
#' CpG sites combined into the test statistic.
#'
#' @export
#'
print.AF <- function(x, ...){
  cat("Method:\n")
  cat(paste(x$method, "\n"))
  cat("\n")
  cat("P-value:\n")
  print(x$pv)
  cat("\n")
  cat("CpG sites combined into test statistic:\n")
  print(x$indexes)
}
cxystat/AFb documentation built on June 17, 2021, 7:30 p.m.