R/print.ADcens.R

Defines functions print.ADcens

Documented in print.ADcens

print.ADcens <- function(x, ...) {
  if (!inherits(x, "ADcens")) {
    stop("Use only 'ADcens' objects")
  }
  cat("Null hypothesis: the data follows a",
      x$Distribution, "distribution \n")
  if (!is.null(x$Hypothesis)) {
    cat("\nParameters:\n")
    print(x$Hypothesis)
  }
  cat("\nAD Test results:\n")
  print(round(x$Test, 3))
  cat("\n")
}

Try the GofCens package in your browser

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

GofCens documentation built on June 8, 2025, 10:11 a.m.