one_sided_test: One-sided testing

View source: R/functions_stats.R

one_sided_testR Documentation

One-sided testing

Description

Compute a one-sided p-value given observed test statistic tobs and randomized tvals.

Usage

one_sided_test(tobs, tvals, tol = 1e-14)

Arguments

tobs

The observed value of the test statistic (scalar).

tvals

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

Details

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.

Value

p-value for one-sided testing.

See Also

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


dpuelz/CliqueRT documentation built on Jan. 6, 2023, 11:20 p.m.