Last data update: 2014.03.03

R: Combining two p-values using Fisher's product or normal...
combfuncR Documentation

Combining two p-values using Fisher's product or normal inversion method

Description

Combining two p-values using Fisher's product or normal inversion methods.

Usage

combfunc(p1=NULL,p2=NULL,combine="fisher")

Arguments

p1

A vector of probabilities.

p2

A vector of probabilities.

combine

A string with the name of the method to be used. Options include "fisher","norminv"

Details

Two vectors of p-values are combined into a vector of global p-values.

Value

A vector of p-values.

Author(s)

Adi Laurentiu Tarca <atarca@med.wayne.edu>, Purvesh Khatri, Sorin Draghici

References

Adi L. Tarca, Sorin Draghici, Purvesh Khatri, et. al, A Signaling Pathway Impact Analysis for Microarray Experiments, 2008, Bioinformatics, 2009, 25(1):75-82.

See Also

spia

Examples

# Examples use colorectal cancer dataset
p1=c(0.2,0.4,0.1)
p2=c(0.01,0.7,0.01)
pG=combfunc(p1,p2,combine="fisher")
pG=combfunc(p1,p2,combine="norminv")


Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(SPIA)
Loading required package: KEGGgraph

Attaching package: 'KEGGgraph'

The following object is masked from 'package:graphics':

    plot

> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/SPIA/combfunc.Rd_%03d_medium.png", width=480, height=480)
> ### Name: combfunc
> ### Title: Combining two p-values using Fisher's product or normal
> ###   inversion method
> ### Aliases: combfunc
> ### Keywords: nonparametric methods
> 
> ### ** Examples
> 
> # Examples use colorectal cancer dataset
> p1=c(0.2,0.4,0.1)
> p2=c(0.01,0.7,0.01)
> pG=combfunc(p1,p2,combine="fisher")
> pG=combfunc(p1,p2,combine="norminv")
> 
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>