kurto: Computes the sample kurtosis of a distribution

View source: R/kurto.r

kurtoR Documentation

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)

Arguments

x

a numeric vector of a random variable.

na.rm

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

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.

Value

An estimator of the kurtosis.

Author(s)

Christian Salas-Eljatib

Examples

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


datana documentation built on June 13, 2025, 1:11 a.m.