Learn R Programming

metaseqR (version 1.12.2)

combine.weight: Combine p-values using weights

Description

This function combines p-values from the various statistical tests supported by metaseqR using p-value weights.

Usage

combine.weight(p, w)

Arguments

p
a p-value matrix (rows are genes, columns are statistical tests).
w
a weights vector, must sum to 1.

Value

  • A vector of combined p-values.

Examples

Run this code
p <- matrix(runif(300),100,3)
pc <- combine.weight(p,w=c(0.2,0.5,0.3))

Run the code above in your browser using DataLab