get_pvalue: Calculate the p-value associated with the W statistic

Description Usage Arguments Value Examples

Description

This function uses interpolation to calculate the exact p-value using the Shapiro-Wilk p-value table. Note that this is specific for p-values using the original or modified Shapiro-Wilk approach. P-values < 0.01 are reported as "0.001", and p-values > 0.99 are reported as "0.999".

Usage

1
get_pvalue(W, n, use_harmonic = T)

Arguments

W

the test statistic for the Shapiro-Wilk test; double, between 0 and 1

n

the number of data points; integer

use_harmonic

whether or not to use harmonic interpolation; boolean, 0 corresponding to linear interpolation and 1 corresponding to harmonic interpolation

Value

p-value, double

Examples

1
get_pvalue (.970, 20)

chrsshn/checknormality documentation built on Dec. 31, 2020, 10:01 p.m.