R/index.skew.R

Defines functions index.skew

Documented in index.skew

#' @title Skewness
#' @description Function to compute the skewness index.
#' @author Ole Roessler, J. Bedia, D. San-Martín, S. Herrera
#' @param ts A vector containing the data
#' @return A float number corresponding to the skewness index.
#' @export

index.skew <- function(ts) {
      mean.x <- index.mean(ts)
      std.x <- index.sd(ts)
      auxObj <- (ts - mean.x) / std.x
      index.mean(auxObj ^ 3)
}
SantanderMetGroup/VALUE documentation built on July 8, 2023, 7:03 a.m.