Learn R Programming

RRI (version 1.1)

out_pval: 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)

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

Value

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

Details

Returns 1 if the test rejects, 0 otherwise.