Decides to reject or not based on observed test statistic value tobs
and randomization values tvals
.
one_sided_test(tobs, tvals, alpha, tol = 1e-14)
The observed value of the test statistic (scalar).
Vector of randomization values of the test statistic (to compare with tobs
).
Desired level of the test (between 0 to 1).
Used to check whether tobs
is equal to the 1-alpha
quantile of tvals
.
Test decision (binary).
The test may randomize to achieve the specified level alpha
when there are very few randomization values.
Testing Statistical Hypotheses (Ch. 15, Lehman and Romano, 2006)