p2corr {vulcan}R Documentation

Convert p-value to correlation coefficient

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

p2corr(p, N)

Arguments

p

a p-value

N

a number of samples

Value

r a correlation coefficient

Examples

N<-100
p<-0.05
p2corr(p,N)

[Package vulcan version 1.6.0 Index]