kurtosis | R Documentation |
kurtosis
returns the sample kurtosis of a data vector/matrix
kurtosis(x, kurt.type = NULL, kurt.excess = FALSE, na.rm = FALSE)
x |
A data vector/matrix |
kurt.type |
The type of kurtosis statistic used ('Moment', 'Fisher Pearson' or 'Adjusted Fisher Pearson') |
kurt.excess |
Logical value; if |
na.rm |
Logical value; if |
This function computes the sample kurtosis for a data vector or matrix. For a vector input the function returns a single value for the
sample kurtosis of the data. For a matrix input the function treats each column as a data vector and returns a vector of values for the
sample kurtosis of each of these datasets. The function can compute different types of kurtosis statistics using the kurt.type
input.
The sample kurtosis of the data vector/matrix
kurtosis(rnorm(1000)) kurtosis(rexp(1000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.