calc_pvalue: Calculate a p-value from a permutation test

Description Usage Arguments Details Value

View source: R/calc_pvalue.R

Description

Calculate a p-value from a permutation test

Usage

1
calc_pvalue(observed_lod, maxlods)

Arguments

observed_lod

the test statistic, on the lod scale

maxlods

a vector of max lods from a collection of permutations

Details

If the observed_lod is greater than all values in the vector maxlods, then a p-value of zero is returned. In practice, it means that you need more permutations.

Value

a permutation test p-value


fboehm/qtl2effects documentation built on Sept. 20, 2021, 7:34 p.m.