R_get_W: Calculate the W statistic for the Royston approach...

Description Usage Arguments Value Examples

Description

This function calculates the W test statistic for the Royston approach for the Shapiro-Wilk test. This function is comparable to the Rcpp implementation of the Royston approach (which can be found in the src folder). For a step-by-step explanation of this function, look at the Readme file under "A Note on the Algorithms".

Usage

1
R_get_W(vec_value)

Arguments

vec_value

vector containing data points; integer or double

Value

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

Examples

1
R_get_W (1:10)

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