skewness | R Documentation |
Computes skewness.
skewness(x, finite = TRUE)
x |
Data vector. |
finite |
Should the finite sample size correction be applied? Defaults to TRUE. |
Due to discontinuation from CRAN (Package ‘modes’ was removed from the CRAN repository; Archived on 2020-03-03 as check problems were not corrected despite reminders), we have copied the required functions into UMtools to ease installation (and slightly modified). The original documentation states the following: "This function calculates the skewness of a data with optional bias correction. The skewness is a measure of the symmetry of a distrbution. A negative skewness means the data is left skewed or has a fat left tail. The converse is true for a positive skew".
Skewness (numeric)
data <- c(rnorm(15, 0, 1), rnorm(21, 5, 1))
hist(data)
skewness(data, TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.