Learn R Programming

datana (version 1.0.6)

kurto: Computes the sample kurtosis of a distribution

Description

The kurtosis is about the tailedness, or the degree of heaviness of the tails, in the frequency distribution. The function computes an estimator of the kurtosis.

Usage

kurto(x, na.rm = TRUE)

Value

An estimator of the kurtosis.

Arguments

x

a numeric vector of a random variable.

na.rm

logical operator to remove NA values. The default is set to TRUE.

Author

Christian Salas-Eljatib

Details

The kurtosis of a random variable is the fourth moment of the standardized variable. There are several ways of parameterizing a kurtosis estimator, such as depending on the fourth moment and the standard deviation of the random variable.

Examples

Run this code
y.var<-rnorm(100);x.var<-rbeta(100,.2,2)
kurto(y.var)
kurto(x.var)

Run the code above in your browser using DataLab