Learn R Programming

psych (version 1.0-77)

skew: Calculate skew or kurtosis for a vector, matrix, or data.frame

Description

Find the skew and kurtosis for each variable in a data.frame or matrix. Unlike skew and kurtosis in e1071, this calculates a different skew for each variable or column of a data.frame/matrix.

Usage

skew(x, na.rm = TRUE)
kurtosi(x, na.rm = TRUE)

Arguments

x
A data.frame or matrix
na.rm
how to treat missing data

Value

  • if input is a matrix or data.frame, skew (kurtosi) is a vector of skews (kurtosi)

Details

given a matrix or data.frame x, find the skew or kurtosis for each column.

See Also

describe, describe.by,

Examples

Run this code
round(skew(attitude),2)
round(kurtosi(attitude),2)

Run the code above in your browser using DataLab