Skip to contents

This function computes the kurtosis of a given data set. It was written for internal computations.

Usage

kurtosis(.invariant, .method = c("excess", "moment", "fisher"), .na_rm = FALSE)

Arguments

.invariant

An univariate or multivariate time series.

.method

A character string. One of: "excess", "moment" or "fisher".

.na_rm

A logical value. Should missing values be removed? The default is FALSE.

Value

A tidy tibble with 2 columns.

Details

The method can be either "moment", "fisher", or "excess".

See also

Examples

if (FALSE) {
  kurtosis(diff(log(EuStockMarkets)), .method = 'excess')
}