Learn R Programming

agricolae (version 1.0-1)

c.skewness: Computes the coefficient of skewness

Description

Returns the skewness of a distribution. Similar to SAS.

Usage

c.skewness(x)

Arguments

x
a numeric vector

Value

  • xThe skewness of x

Details

n = length(x) $n{(n-1)(n-2)}i\left(x_i - mean(x){sd(x)}\right)^3$

See Also

c.kurtosis

Examples

Run this code
library(agricolae)
x<-c(3,4,5,2,3,4,NA,5,6,4,7)
c.skewness(x)
# value is 0,3595431, is slightly asimetrica (positive) to the right

Run the code above in your browser using DataLab