lrs2p: convert lrs to p-values

Description Usage Arguments Value Note Author(s) References Examples

Description

Convert likelihood ratio statistics (LRS) to p-values (P), with an appropriate df (degrees of freedom).

Usage

1
  lrs2p(x, df = 1)

Arguments

x

a numeric vector, matrix or data.frame of LRS statistics. even a table of data with an “lrs” column is supported.

df

degrees of freedom

Value

p-values of the same dimension as x

Note

This was developed in the context of mapping eQTL data in BXD recombinant mice

Author(s)

Mark Cowley, 30 June 2005

References

http://dx.doi.org/10.1007/s00335-005-0187-8

Examples

1
2
3
4
lrs2p( 5.28*2*log(10), 2)
# [1] 5.25e-06
lod2p(lrs2lod(24.3))
# [1] 5.29e-06

drmjc/mjcstats documentation built on May 15, 2019, 2:41 p.m.