Learn R Programming

modes (version 0.7.0)

skewness: Skewness Function

Description

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.

Usage

skewness(x, finite = TRUE)

Arguments

x
Data vector.
finite
Should the finite sample correction (bias correction) be used? Defaults to TRUE.

Examples

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

Run the code above in your browser using DataLab