skewness: Sample Skewness

Description Usage Arguments Details Value Examples

View source: R/skewness.R

Description

Calculate the sample skewness.

Usage

1
skewness(x, na.rm = FALSE)

Arguments

x

a numeric vector.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Details

Compute the sample skewness of x as

(1/N)(Σ (x_i - x_bar)^3) / (((1/N)Σ (x_i - x_bar)^2)^(3/2))

Value

A vector of length one giving the sample skewness of x.

Examples

1
2
x<- rnorm(1000)
skewness(x)

optimStrat documentation built on Nov. 11, 2020, 5:07 p.m.