Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

skewness

Skewness


Description

Computes the skewness.

Usage

skewness(x)

Arguments

x

a numeric vector containing the values whose skewness is to be computed. NA values are removed in the computation.

Details

If N = length(x), then the skewness of x is defined as

N^(-1) sd(x)^(-3) sum_i (x_i - mean(x))^3.

Value

The skewness of x.

References

G. Snedecor, W. Cochran. Statistical Methods, Wiley-Blackwell, 1989

Examples

x <- rnorm(100)
skewness(x)

npde

Normalised Prediction Distribution Errors for Nonlinear Mixed-Effect Models

v3.1
GPL (>= 2)
Authors
Emmanuelle Comets [aut, cre] (<https://orcid.org/0000-0002-9150-9886>), Karl Brendel [ctb], Thi Huyen Tram Nguyen [ctb], Romain Leroux [ctb], France Mentre [ctb]
Initial release
2021-04-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.