categorize_p_value: categorize whether a p-value belongs to the null distribution

Description Usage Arguments Value Examples

Description

categorize whether a p-value belongs to the null distribution

Usage

1
categorize_p_value(p_value, null_cutoff = 0.005, uncertain_cutoff = 5e-04)

Arguments

p_value

probability that sample fits within the null distribution

null_cutoff

threshold at which to assign the sample as belonging to the null distribution

uncertain_cutoff

threshold at which to assign the sample as belonging to the null distribution

Value

string of "reject" if the p-value belongs to the null distribution, "null" if the p-value belongs to the null distribution, and "uncertain" if it is unclear whether the p-value belongs to the null distribution or not.

Examples

1
2
3
4
categorize_p_value(0.000001)
categorize_p_value(0.1)
categorize_p_value(NA)
categorize_p_value(0.001, uncertain_cutoff=0.002)

jeremymcrae/cifer documentation built on May 19, 2019, 5:08 a.m.