R/true.mode.R

Defines functions true.mode

Documented in true.mode

#' True Mode  
#' 
#' Calculates the "true mode" for the data, defined as \eqn{3\tilde{x} - 2\bar{x}}{3*median(x)-2*mean(x)} 
#'
#' @param x Vector - data to calculate "true mode" for
#' 
#' @return Scalar result of true mode calculation. 
true.mode<-function(x) {
  3*median(x)-2*mean(x)
}
burrm/lolcat documentation built on Sept. 15, 2023, 11:35 a.m.