Learn R Programming

normality (version 0.0.1)

skewness: Skewness test

Description

Skewness test

Usage

skewness(
  x,
  alpha = 0.05,
  alternative = c("two.sided", "less", "greater"),
  method = c("G1", "b1", "g1")
)

Value

A list: is_normal: Is the input data normally distributed? method: The name of the test. alpha: Significance threshold (default: 0.05). alternative: The alternative hypothesis (H1) to test. summary_table: Statistic summary, if any. statistic: The value used to calculate p-value. pvalue: p-value. confidence_interval: The lower and upper bound of CI.

Arguments

x

Numeric vector. The input data.

alpha

Numeric (default: 0.05). Significance threshold (0 - 1).

alternative

Character (default: "two.sided). The alternative hypothesis (H1) to test. Available options are c("two.sided", "less", "greater").

method

Character (default: "G1"). Different skewness formula. Available options are c("G1", "b1", "g1"). The "g1" is the original one. The "G1" and "b1" are the unbiased estimate version of "g1".

References

Joanes, D.N., Gill, C.A., 1998. Comparing measures of sample skewness and kurtosis. J Royal Statistical Soc D 47, 183–189. https://doi.org/10.1111/1467-9884.00122

Wright, D.B., Herrington, J.A., 2011. Problematic standard errors and confidence intervals for skewness and kurtosis. Behav Res 43, 8–17. https://doi.org/10.3758/s13428-010-0044-x

Examples

Run this code
skewness(cholesterol)

Run the code above in your browser using DataLab