R/threshold_value.R

Defines functions threshold_value

Documented in threshold_value

#' Threshold value
#'
#' Returns threshold value of direct relationship decision matrix
#'
#' @param x a matrix containing the values of direct relationship decision matrix.
#'
#' @return This function returns a \code{num}
#'
#' @author Muhlis Ozdemir <muhlisoz@gmail.com>
#'
#' @export
#' @examples
#' threshold_value(dematel::hospitaldata)
#' threshold_value(dematel::nurseselection)
#' threshold_value(dematel::medicaldevice)
threshold_value <- function(x) {

  x <- check_data(x)

  return(mean(total_relationship_matrix(x)))
}
muhlisoz/dematel documentation built on Feb. 16, 2021, 12:06 a.m.