p2corr: Convert p-value to correlation coefficient

Description Usage Arguments Value Examples

Description

This functions converts an p-value into a the corresponding correlation coefficient, using a T distribution with the provided number of samples N minus 2 degrees of freedom

Usage

1
p2corr(p, N)

Arguments

p

a p-value

N

a number of samples

Value

r a correlation coefficient

Examples

1
2
3
N<-100
p<-0.05
p2corr(p,N)

federicogiorgi/vulcan documentation built on May 27, 2019, 7:25 a.m.