R/summary.wilc_result.R

Defines functions summary.wilc_result

#' @rawNamespace S3method(summary,wilc_result)
summary.wilc_result <- function(object, ...) {
  output <- data.frame(matrix(NA, length(object), 2))
  names(output) <- c("WilcoxonW", "p-value")
  for (i in 1:length(object)) {
    output[i, 1] <- object[[i]][["statistic"]]
    output[i, 2] <- object[[i]][["p.value"]]
    rownames(output)[i] <- object[[i]][[8]]
  }
  print(output, digits = 4)
}

Try the ezCutoffs package in your browser

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

ezCutoffs documentation built on Dec. 4, 2019, 5:06 p.m.