p2c: p2c

Description Usage Arguments Value Author(s) Examples

Description

p2c converts the given p value to the absolute value of corresponding correlation coefficient

Usage

1
p2c(pval, df)

Arguments

pval

a numeric value in [0,1] representing the p value

df

an integer value representing the degree of freedom

Value

a numeric value in [0,1] representing the absolute value of correlation coefficient

Author(s)

Shijia Zhu, shijia.zhu@mssm.edu

Examples

1
2
3
4
5
x <- rnorm(100)
y <- x + rnorm(100)
z <- cor.test(x,y)
z
p2c(z$p.value,98)

fanglab/MatrixEpistasis documentation built on May 25, 2019, 5:22 p.m.