p2corr: Convert p-value to correlation coefficient

Description Usage Arguments Value Examples

View source: R/generic.R

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)

vulcan documentation built on Nov. 8, 2020, 8:15 p.m.