View source: R/functions_stats.R
| two_sided_test | R Documentation | 
Compute a two-sided p-value given observed test statistic tobs
and randomized tvals.
two_sided_test(tobs, tvals, tol = 1e-14)
tobs | 
 The observed value of the test statistic (scalar).  | 
tvals | 
 A vector of randomization values of the test statistic (to compare with   | 
The test may randomize the p-value depending on how many tvals
are the same as tobs (up to a tolerance level) to get better performance.
p-value for two-sided testing.
Testing Statistical Hypotheses (Ch. 15, Lehman and Romano, 2006)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.