two_sided_test: Two-sided testing

Description Usage Arguments Value See Also

View source: R/functions.R

Description

Decides to reject or not based on observed test statistic value tobs and randomization values tvals. The test may randomize to achieve the specified level alpha when there are very few randomization values.

Usage

1
two_sided_test(tobs, tvals, alpha)

Arguments

tobs

The observed value of the test statistic (scalar).

tvals

Vector of randomization values of the test statistic (to compare with tobs).

alpha

Desired level of the test (between 0 to 1).

Value

Test decision (binary).

See Also

Testing Statistical Hypotheses (Ch. 15, Lehman and Romano, 2006)


RRI documentation built on Dec. 19, 2019, 9:06 a.m.

Related to two_sided_test in RRI...