combinePval: Combine _p_ values

Description Usage Arguments Details Value References See Also Examples

Description

Combine two p values into one.

Usage

1
2
combinePval(obj, pval.1 = "pval", pval.2 = "pval.database", method="stouffer",
 w=c(1,1))

Arguments

obj

corObject with a net slot defined. It must have at least two columns with p values to combine.

pval.1

column name (from the net slot) of the first p value. By default: the p value of the correlation.

pval.2

column name (from the net slot) of the second p value. By default: the p value from MicroCosm database.

method

"stouffer" (default) or "fisher"

w

numeric vector of length two indicating the respective weights that will be applied to Stouffer combination. By default: no weighting.

Details

Stouffer and Weighted Stouffer (Lipták) combination is computed according to:

p_{comb} = 1- Φ ≤ft( \frac{1}{√{w_1^2+w_2^2}} ≤ft( w_1 ≤ft( Φ^{-1} ≤ft( 1- p_{1} \right) \right) + w_2 ≤ft( Φ^{-1} ≤ft( 1- p_{2} \right) \right) \right) \right)

where,

Φ(x) = \int_{-∞}^{x} \frac{1}{√{2π}}e^{\frac{z^2}{2}} \textrm{d}z

Fisher combination is computed according to:

t = -2 ≤ft( \ln p_{1} + \ln p_{2} \right) \sim χ_{4}^{2}

Value

a corObject in which a column containing the combined p values has been added to the net slot.

References

For more information about the combination methods, see:

Zaykin D.V.. Optimally weighted Z-test is a powerful method for combining probabilities in meta analysis. Journal of Evolutionary Biology, 2011.

Gade G., Porzelius C., Fälth M., Brase J.C., Wuttig D., Kuner R., Binder H., Sültmann H., and Beissbarth T. Graph based fusion of miRNA and mRNA expression data improves clinical outcome prediction of prostate cancer. BMC Bioinformatics, 12(488), 2011.

See Also

combinePval, p.adjust , addNet

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(data.obj)

## add column pval.database
data(microCosm_v5_18)
data.obj<-addDatabase(data.obj,"microCosm_v5_18_numeric")

## combine the two p-values
data.obj<-combinePval(data.obj, pval.1="pval", pval.2="pval.database")

head(data.obj@net)

mariavica/mircomb documentation built on Feb. 3, 2020, 2:28 a.m.