R/tau.R

Defines functions tau

Documented in tau

#' Quantify tau between two variables.
#'
#' \code{tau} calculates the statistic \eqn{\tau} between two data points.
#'
#' @param a Vector of angles in radians.
#' @return Vector of \eqn{\tau} values between -1 and 1.
tau <- function(a){
  asin(sin(2*a))/ asin(1)
}
ellisztamas/sintillate documentation built on Feb. 13, 2023, 5:04 a.m.