pQnormScore: Transform p-values to continuous scores with the quantile...

Description Usage Arguments See Also Examples

View source: R/pScore.R

Description

Quantile function, also known as the inverse of cumulative distribution function of the normal distribution, is used to map p-values to continuous scores raging on R. The signs of the resulting scores are positive by default and are determined by the parameter sign.

Usage

1
pQnormScore(p, sign = 1)

Arguments

p

p-value(s) between (0,1]

sign

Signs of the scores, either positive (in case of positive numbers), negative (in case of negative numbers), or zero. In case of a logical vector, TRUE is interpreted as positive and FALSE is interpreted as negative.

See Also

pAbsLog10Score, pScore

Examples

1
2
3
4
5
6
testPvals <- c(0.001, 0.01, 0.05, 0.1, 0.5, 1)
pQnormScore(testPvals)
testPvalSign <- rep(c(-1,1), 3)
pQnormScore(testPvals, sign=testPvalSign)
testLog <- rep(c(TRUE, FALSE),3)
pQnormScore(testPvals, testLog)

ribiosUtils documentation built on March 13, 2020, 2:54 a.m.