diff --git a/R/vec-cumulative-functions.R b/R/vec-cumulative-functions.R index 3d390fc..3c24d17 100644 --- a/R/vec-cumulative-functions.R +++ b/R/vec-cumulative-functions.R @@ -363,7 +363,7 @@ crange <- function(.x) { #' of that vector. The length of this vector must be at least four numbers. The #' kurtosis explains the sharpness of the peak of a distribution of data. #' -#' `((1/n) * sum(x - mu})^4) / ((()1/n) * sum(x - mu)^2)^2` +#' \deqn{\frac{\frac{1}{n} \sum (x - \mu)^4}{\left(\frac{1}{n} \sum (x - \mu)^2\right)^2}} #' #' @param .x A numeric vector of length four or more. #' @@ -420,7 +420,7 @@ kurtosis_vec <- function(.x) { #' of that vector. The length of this vector must be at least four numbers. The #' skewness explains the 'tailedness' of the distribution of data. #' -#' `((1/n) * sum(x - mu})^3) / ((()1/n) * sum(x - mu)^2)^(3/2)` +#' \deqn{\frac{\frac{1}{n} \sum (x - \mu)^3}{\left(\frac{1}{n} \sum (x - \mu)^2\right)^{3/2}}} #' #' @param .x A numeric vector of length four or more. #' diff --git a/man/kurtosis_vec.Rd b/man/kurtosis_vec.Rd index c6ac6aa..cf44a54 100644 --- a/man/kurtosis_vec.Rd +++ b/man/kurtosis_vec.Rd @@ -17,7 +17,7 @@ This function takes in a vector as it's input and will return the kurtosis of that vector. The length of this vector must be at least four numbers. The kurtosis explains the sharpness of the peak of a distribution of data. -\verb{((1/n) * sum(x - mu\})^4) / ((()1/n) * sum(x - mu)^2)^2} +\deqn{\frac{\frac{1}{n} \sum (x - \mu)^4}{\left(\frac{1}{n} \sum (x - \mu)^2\right)^2}} } \details{ A function to return the kurtosis of a vector. diff --git a/man/skewness_vec.Rd b/man/skewness_vec.Rd index 0fb5444..7797e85 100644 --- a/man/skewness_vec.Rd +++ b/man/skewness_vec.Rd @@ -17,7 +17,7 @@ This function takes in a vector as it's input and will return the skewness of that vector. The length of this vector must be at least four numbers. The skewness explains the 'tailedness' of the distribution of data. -\verb{((1/n) * sum(x - mu\})^3) / ((()1/n) * sum(x - mu)^2)^(3/2)} +\deqn{\frac{\frac{1}{n} \sum (x - \mu)^3}{\left(\frac{1}{n} \sum (x - \mu)^2\right)^{3/2}}} } \details{ A function to return the skewness of a vector.