skew: Skewness Index

Description Usage Arguments Details Value Author(s) Examples

View source: R/timefit.R

Description

Calculate the skewness index of an empirical distribution.

Usage

1
skew(x)

Arguments

x

Vector of data.

Details

The skewness measures the asymmetry of a probability distribution. If a positive skewness identifies a greater right tail, a negative skewness is symptom of a greater left tail of the distribution.

The skewness is calculated as: k_{3} / k_{2}^{1.5}, where k_{2} and k_{3} are respectively the second and the third moment of the distribution.

Value

The skewness index.

Author(s)

Davide Massidda [email protected]

Examples

1
2
3
4
# Vector of reaction times from Heathcote (1996):
RT <- c(474.688, 506.445, 524.081, 530.672, 530.869,
        566.984, 582.311, 582.940, 603.574, 792.358)
skew(RT)

Example output

Reaction Time Analysis (version 0.1-2)
[1] 1.702413

retimes documentation built on May 30, 2017, 3:32 a.m.