skewness: Skewness (Copied from the deprecated R-package modes)

View source: R/skewness.R

skewnessR Documentation

Skewness (Copied from the deprecated R-package modes)

Description

Computes skewness.

Usage

skewness(x, finite = TRUE)

Arguments

x

Data vector.

finite

Should the finite sample size correction be applied? Defaults to TRUE.

Details

Due to discontinuation from CRAN (Package ‘modes’ was removed from the CRAN repository; Archived on 2020-03-03 as check problems were not corrected despite reminders), we have copied the required functions into UMtools to ease installation (and slightly modified). The original documentation states the following: "This function calculates the skewness of a data with optional bias correction. The skewness is a measure of the symmetry of a distrbution. A negative skewness means the data is left skewed or has a fat left tail. The converse is true for a positive skew".

Value

Skewness (numeric)

Examples

data <- c(rnorm(15, 0, 1), rnorm(21, 5, 1))
hist(data)
skewness(data, TRUE)

BenjaminPlanterose/UMtools documentation built on Aug. 19, 2024, 4:54 a.m.