out_pval {RRI}R 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)

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.


[Package RRI version 1.1 Index]