pval_shapiro {DemographicTable}R Documentation

P-value from modified Shapiro-Wilk Normality Test

Description

Obtain p-value from Shapiro-Wilk normality test, taking into consideration of several exceptions.

Usage

pval_shapiro(x, CLT = FALSE)

Arguments

x

double vector

CLT

logical scalar, whether to allow the use of Central Limit Theorem (default FALSE)

Details

pval_shapiro provides a pseudo p-value for the several exceptions of shapiro.test function, serving as a criteria of whether robust statistics/tests need to be used

Value

pval_shapiro returns a double scalar.

Examples

pval_shapiro(rnorm(5))
sapply(with(airquality, split(Ozone, f = Month)), FUN = pval_shapiro)


[Package DemographicTable version 0.1.6 Index]