out_pval: Calculates p-value or test decision

View source: R/functions_stats.R

out_pvalR Documentation

Calculates p-value or test decision

Description

Depending on ret_pval this function returns either a p-value for the test or the binary decision.

Usage

out_pval(rtest_out, ret_pval, alpha, tol = 1e-14)

Arguments

rtest_out

A List with elements tobs, tvals (see one_sided_test for details.)

ret_pval

A Boolean indicating whether to return a p-value (TRUE) or not.

alpha

Desired test level (from 0 to 1).

tol

tolerance level for equality between tobs and tvals.

Details

Returns 1 if the test rejects, 0 otherwise. Note that the test is a two-sided one.

Value

Binary decision if ret_pval is TRUE, or the p-value otherwise.


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