Learn R Programming

timeDate (version 290.83)

kurtosis: Kurtosis

Description

Functions to compute kurtosis.

Usage

kurtosis(x, ...)

## S3 method for class 'default': kurtosis(x, na.rm = FALSE, method = c("excess", "moment", "fisher"), ...) ## S3 method for class 'data.frame': kurtosis(x, \dots) ## S3 method for class 'POSIXct': kurtosis(x, \dots) ## S3 method for class 'POSIXlt': kurtosis(x, \dots)

Arguments

na.rm
a logical. Should missing values be removed?
method
a character string which specifies the method of computation. These are either "moment", "fisher", or "excess". If "excess" is selected, then the value of the kurtosis is compu
x
a numeric vector or object.
...
arguments to be passed.

Value

  • kurtosis returns the value of the statistics, a numeric value. An attribute which reports the used method is added.

See Also

link{skewness}.

Examples

Run this code
## mean -
## var -
   # Mean, Variance:
   r = rnorm(100)
   mean(r)
   var(r)
   
## kurtosis - 
   kurtosis(r)

Run the code above in your browser using DataLab