Learn R Programming

MAMA (version 2.2.1)

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

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

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

Examples

Run this code
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")

Run the code above in your browser using DataLab