R/print.mantel.R

`print.mantel` <-
  function (x, digits = max(3, getOption("digits") - 3), ...)
{
  cat("\n")
  if (inherits(x, "mantel.partial"))
    cat("Partial ")
  cat("Mantel statistic based on", x$method, "\n")
  cat("\nCall:\n")
  cat(deparse(x$call), "\n\n")
  cat("Mantel statistic r: ")
  cat(formatC(x$statistic, digits = digits), "\n")
  nperm <- x$permutations
  if (nperm) {
    cat("      Significance:", format.pval(x$signif),
        "\n\n")
    out <- quantile(x$perm, c(0.9, 0.95, 0.975, 0.99), na.rm = TRUE)
    cat("Upper quantiles of permutations (null model):\n")
    print(out, digits = 3)
    cat(howHead(x$control))
  }
  cat("\n")
  invisible(x)
}

Try the vegan package in your browser

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

vegan documentation built on Oct. 11, 2022, 5:06 p.m.