p2cor: Function to convert p-values to correlation via the...

Description Usage Arguments Value

View source: R/p2cor.R

Description

Function to convert p-values to correlation via the t-statistic

Usage

1
p2cor(p, n, sign = rep(1, length(p)), min.n = max(n, 30)/10)

Arguments

p

Vector of p-values

n

Sample size

sign

A vector giving the sign of the correlations (e.g. the log odds ratios)

min.n

The minimum sample size to be considered a valid p-value

Value

A vector of correlations


tshmak/lassosum documentation built on Sept. 24, 2020, 9:41 a.m.