out_pval: Calculates p-value or test decision

Description Usage Arguments Details Value

View source: R/functions.R

Description

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

Usage

1
out_pval(rtest_out, ret_pval, alpha)

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).

Details

Returns 1 if the test rejects, 0 otherwise.

Value

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


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

Related to out_pval in RRI...