skew: Computes the skewness of a numeric vector

View source: R/skew.r

skewR Documentation

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)

Arguments

x

A numeric vector representing a random variable.

na.rm

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

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.

Value

The value of the the skewness of given vector

Author(s)

Christian Salas-Eljatib.

Examples

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


datana documentation built on June 13, 2025, 1:11 a.m.