mirror of
https://github.com/msberends/AMR.git
synced 2025-12-14 23:50:23 +01:00
1.1 KiB
1.1 KiB
Skewness of the Sample
Skewness is a measure of the asymmetry of the probability distribution of a real-valued random variable about its mean.
When negative ('left-skewed'): the left tail is longer; the mass of the distribution is concentrated on the right of a histogram. When positive ('right-skewed'): the right tail is longer; the mass of the distribution is concentrated on the left of a histogram. A normal distribution has a skewness of 0.
Usage
skewness(x, na.rm = FALSE)
# Default S3 method
skewness(x, na.rm = FALSE)
# S3 method for class 'matrix'
skewness(x, na.rm = FALSE)
# S3 method for class 'data.frame'
skewness(x, na.rm = FALSE)
Arguments
-
x:
A vector of values, a matrix or a data.frame.
-
na.rm:
A logical value indicating whether
NAvalues should be stripped before the computation proceeds.
See also
Examples
skewness(runif(1000))
#> [1] -0.01429035