Skip to contents

This function reject the null hypothesis if the p-value is smaller than the given significance level plus the tolerance.

Usage

eval_p_value(p_value, significance_level = 0.05, tol = 1e-06)

Arguments

p_value

Numeric. A vector of p-values.

significance_level

Numeric. The significance level.

tol

Numeric. Tolerance.

Value

A vector of Boolean values indicating whether the null hypotheses should be rejected.

Examples


eval_p_value(c(0.05, 0.0501), 0.05, 1e-3)
#> [1] TRUE TRUE
eval_p_value(c(0.05, 0.0501), 0.05, 1e-5)
#> [1]  TRUE FALSE