kurtosis: Excess Kurtosis

View source: R/kurtosis.R

kurtosisR Documentation

Excess Kurtosis

Description

This function computes the excess kurtosis.

Usage

kurtosis(x, as.na = NULL, check = TRUE)

Arguments

x

a numeric vector.

as.na

a numeric vector indicating user-defined missing values, i.e. these values are converted to NA before conducting the analysis.

check

logical: if TRUE, argument specification is checked.

Details

The same method for estimating kurtosis is used in SAS and SPSS. Missing values (NA) are stripped before the computation. Note that at least 4 observations are needed to compute excess kurtosis.

Value

Returns the estimated excess kurtosis of x.

Author(s)

Takuya Yanagida takuya.yanagida@univie.ac.at

References

Rasch, D., Kubinger, K. D., & Yanagida, T. (2011). Statistics in psychology - Using R and SPSS. New York: John Wiley & Sons.

See Also

skewness

Examples

# Set seed of the random number generation
set.seed(123)
# Generate random numbers according to N(0, 1)
x <- rnorm(100)

# Compute excess kurtosis
kurtosis(x)

misty documentation built on Nov. 15, 2023, 1:06 a.m.

Related to kurtosis in misty...