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, logp = FALSE, sign = rep(1, length(p)), min.n = max(n, 30)/10)

Arguments

p

Matrix of p-values

n

Sample size

logp

whether the input p is -log(p-value)

sign

A matrix 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 matrix of correlations


yingxi-kaylee/ssCTPR documentation built on Nov. 14, 2021, 5:24 a.m.