calc_kurtosis: Kurtosis computation

View source: R/calc_kurtosis.r

calc_kurtosisR Documentation

Kurtosis computation

Description

Computation of the kurtosis, a measure of the "peakedness". This metric can be used to determine the shape of a dataset, and whether it is platykurtic (flatter than a normal distribution), mesokurtic (same kurtosis as a normal distribution), or leptokurtic (more peaked than a normal distribution).

Usage

calc_kurtosis(x, type = c("unbiased", "biased", "excess", "percentile"))

Arguments

x

A numeric vector

type

A character single value, that is the type of the kurtosis to be computed

Details

Currently, it is possible to compute the following metrics:
- Biased kurtosis coefficient
- Excess kurtosis coefficient
- Percentile kurtosis coefficient
- Unbiased kurtosis coefficient

Value

A numeric single value with the computed value.

Examples


x <- rnorm(100,1)

calc_kurtosis(x)


vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.