Learn R Programming

ffstream (version 0.1.7.2)

convertPvalueToCorrectSideR: Convert a 'p-value' to the correct side.

Description

Wrapper function to convery a two-sided p-value to a one-sided 'p-value' (values close to 0 and close to 1 both become close to 0). For example, both 0.01 and 0.99 are mapped to 0.01.

Usage

convertPvalueToCorrectSideR(p)

Arguments

p

The two-sided p-value to be converted.