kurtosi {psych}R Documentation

Kurtosis of a vector, matrix, or data frame

Description

Find the kurtosis of a vector, matrix, or dataframe.

Usage

kurtosi(x, na.rm = TRUE)

Arguments

x vector, matrix, or data frame
na.rm na.rm =TRUE removes missing data from the column

Details

Kurtosis in the E1071 package finds the kurtosis for a single vector. This does it for matrices and dataframes. Used in the describe function.

Value

kurtosi a vector of the kurtosis for each column of the matrix

Note

The mean function supplies means for the columns of a data.frame, but the overall mean for a matrix. Mean will throw a warning for non-numeric data, but colMeans stops with non-numeric data. Thus, the function uses either mean (for data frames) or colMeans (for matrices). This is true for skew and kurtosi as well.

Author(s)

William Revelle

See Also

skew, describe

Examples


 round(kurtosi(attitude),2)


[Package psych version 1.0-33 Index]