Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

kurtosis

Kurtosis


Description

Computes the Kurtosis.

Usage

kurtosis(x, na.rm = FALSE)

Arguments

x

data

na.rm

logical variable, if true, missing values are excluded from analysis

Details

Given data x_1,x_2,…, x_n, the sample kurtosis is defined by the formula:

\frac{∑_{i=1}^n (x_i-\bar{x})^4/n}{(∑_{i=1}^n (x_i-\bar{x})^2/n)^2}-3.

Value

The function returns the kurtosis of the data.

Author(s)

Kung-Sik Chan

Examples

data(CREF)
r.cref=diff(log(CREF))*100
kurtosis(r.cref)

TSA

Time Series Analysis

v1.3
GPL (>= 2)
Authors
Kung-Sik Chan, Brian Ripley
Initial release
2020-9-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.