Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

shapiro.wilk.test

Shapiro-Wilk Normality Test


Description

Performs the Shapiro-Wilk test for normality.

Usage

shapiro.wilk.test(x)

Arguments

x

a numeric vector of data values, the number of which must be between 3 and 5000. Missing values are allowed.

Value

A list containing the following components:

W

the value of the Shapiro-Wilk statistic.

n

length(x)

p

the p-value for the test.

Author(s)

??

See Also

Examples

shapiro.wilk.test(rnorm(100, mean = 5, sd = 3))  # $p 0.169547
  shapiro.wilk.test(runif(100, min = 2, max = 4))  # $p 6.09393e-06

cwhmisc

Miscellaneous Functions for Math, Plotting, Printing, Statistics, Strings, and Tools

v6.6
GPL (>= 2)
Authors
Christian W. Hoffmann
Initial release
2018-08-24, 10:40:10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.