meta.test: Function to compute T-statistic and p-value in meta-analysis

Description Usage Arguments Value Author(s) Examples

Description

Function meta.test returns a list with two slots: data frame of test statistics and data frame of p-values. In each of the matrices rows correspond to genes and columns to data sets.

Usage

1
meta.test(x, varname, stat = "t")

Arguments

x

MetaArray object

varname

A String indicating which column of clinical data matrices should be used as class labels. Column of such name must be present in all datasets. It must not be a binary vector (0's and 1's)

stat

A character String indicating the type of test statistic to be computed as used in mt.teststat function

Value

A list with two slots:

test

A data frame of statistics in which rows correspond to genes and columns to data sets

p

A data frame of p-values (only if test="t" returned) in which rows correspond to genes and columns to data sets

Author(s)

Ivana Ihnatova

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(Singhdata)

cl1<-as.data.frame(Singhdata$classes[[1]]+1)
names(cl1)<-"classlab"
cl2<-as.data.frame(Singhdata$classes[[2]]+1)
names(cl2)<-"classlab"
cl3<-as.data.frame(Singhdata$classes[[3]]+1)
names(cl3)<-"classlab"
rownames(Singhdata$esets[[1]])<-Singhdata$geneNames
rownames(Singhdata$esets[[2]])<-Singhdata$geneNames
rownames(Singhdata$esets[[3]])<-Singhdata$geneNames

data<-new("MetaArray", GEDM=list(Singhdata$esets[[1]], Singhdata$esets[[2]], Singhdata$esets[[3]]),
clinical=list(cl1, cl2, cl3), datanames=c("dataset1", "dataset2", "dataset3"))

m<-meta.test(data,"classlab")

MAMA documentation built on Jan. 15, 2017, 3:05 p.m.

Related to meta.test in MAMA...