Description Usage Arguments Value Examples
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".
1 | get_pvalue(W, n, use_harmonic = T)
|
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 |
p-value, double
1 | get_pvalue (.970, 20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.