Depending on ret_pval this function returns either a p-value for the test or the binary decision.
out_pval(rtest_out, ret_pval, alpha)A List with elements tobs, tvals (see one_sided_test for details.)
A Boolean indicating whether to return a p-value (TRUE) or not.
Desired test level (from 0 to 1).
Binary decision if ret_pval is TRUE, or the p-value otherwise.
Returns 1 if the test rejects, 0 otherwise.