Learn R Programming

datana (version 1.0.6)

skew: Computes the skewness of a numeric vector

Description

The skewness is about the departure from symmetry of a frequency distribution. Therefore, It is about asymmetry. One way to assess asymmetry of a random variable is to compute an statistics representing its skewness. The current function an dimensionless statistics of the skewness of given vector.

Usage

skew(x, na.rm = TRUE)

Value

The value of the the skewness of given vector

Arguments

x

A numeric vector representing a random variable.

na.rm

Logical value to remove NA values. The default is set to TRUE.

Author

Christian Salas-Eljatib.

Details

The skewness of a random variable is the third moment of the standardized variable. There are several ways of parameterizing an skewness estimator, such as depending on the third moment and the standard deviation of the random variable.

Examples

Run this code
y.var<-rnorm(100);x.var<-rbeta(100,.2,2)
skew(y.var)
skew(x.var)

Run the code above in your browser using DataLab