R/meth_friedman.R

# Setting the CMH_C function output presentation

# setting class name and its representation as a list
setClass( "friedman_test", representation("list"))

# setting how the test will be presented
setMethod("show", "friedman_test", function(object) {
  cat("\n",sep = "")
  cat("       Friedman Rank Sum Test\n",sep = "")
  cat("\n",sep = "")
  cat("Groups information:\n")
  print(signif(object$rank_info, object$sig_digits))
  cat("\n",sep = "")
  print(signif(object$results_table,object$sig_digits),sep = "")
  cat("\n")
  cat("\n")
})

Try the CMHNPA package in your browser

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

CMHNPA documentation built on Feb. 16, 2023, 7:20 p.m.