R/intcv.R

Defines functions intcv

Documented in intcv

#' Integration-based CV%
#'
#' @param ... Arguments passed to moment()
#'
#' @return Percent CV
#' @export
#'
#' @examples
intcv <- function(...) {
  mom1 <- moment(n=1,...)
  mom2 <- moment(n=2,...)
  100*sqrt( mom2/mom1^2 - 1 )
}

Try the pmxcv package in your browser

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

pmxcv documentation built on May 29, 2024, 7:28 a.m.