fdrma: fdr.ma

Description Usage Arguments Value Author(s) References Examples

Description

This function takes normalized expression data array, experimental design and computes adjusted p-values. It returns the fdr adjusted p-values and plots, according to the methods described in (Reiner, Yekutieli and Benjamini 2002)

Usage

1
fdr.ma(exp.arr,design,p.method="resampling",fdr.adj="BH-LSU",equal.var=TRUE,plot=c("pvlVSrank","adjVSstat"),perms.num=100)

Arguments

exp.arr

A data frame or matrix, with m rows corresponding to the gene expression level of an observation and n columns to the observations. In the case of gene expression data, rows correspond to genes and columns to mRNA samples. The data can be read using 'read.table'. The matrix is as the X matrix in multtest package.

design

A vector of charachters corresponding to observation (column) class labels. For k classes, the labels must be k different charachters. The vector is similar to classlabel vector in multtest package.

p.method

A character string specifying whether resampling mehtod may be used. If 'p.method="resampling"', resampling method is used. If 'p.method="theoretic"', statistic is computed without resampling.

fdr.adj

A character string specifying which type of p-value adjustment method may be used. If 'fdr.adj="BH-LSU"', Benjamini-Hochberg Linear Step Up porcedure is used. If 'fdr.adj="point.est"', point estimation procedure is used.(p.method value must be "resampling") If 'fdr.adj="upper.est"', upper estimation procedure is used.(p.method value must be "resampling") If 'fdr.adj="adaptive"', two-stage adaptive procedure is used.

equal.var

A boolean variable specifying whether equal variance assumption may be taken. If TRUE, an equal group variances is assumed. If FALSE, welch approximation is used, for the unequal group variances

plot

A vector of character strings specifying the plots that may be drawn. If the vector contains "pvlVSrank", a plot of p-values vs rank is drawn. If the vector contains "adjVSrank", a plot of adjusted p-values vs rank is drawn. If the vector contains "adjVSstat", a plot of adjusted p-values vs computed statistic (f or t, depends depends on the number of groups on the design) is drawn.

perms.num

An integer specifying the number of permutations that would be used.

Value

A data frame with components

adj

adjusted p-values.

dif

When there are only two groups dif contains the differences between the means of the two groups. when there are more than two groups dif contains the multiple R-Squared values.

res.pvalues

resampling p-values. (in case resampling was requested)

Author(s)

Yoav Benjamini, Effi Kenigsberg, Anat Reiner, Daniel Yekutieli

References

Reiner A, Yekutieli D, Benjamini Y: Identifying differentially expressed genes using false discovery rate controlling procedures. Bioinformatics 19:368-375, 2003 Benjamini, Y., Krieger, A.M.,Yekutieli, D. (2001) "Two Staged Linear Step Up FDR Controlling Procedure", Technical Report Department of Statistics and O.R., Tel Aviv University.

Examples

1
2
data(exp.arr,design)
output<-fdr.ma(exp.arr,design,p.method="theoretic",fdr.adj="BH-LSU",equal.var=TRUE,plot=c("pvlVSrank","adjVSrank","adjVSstat"))

fdrame documentation built on Nov. 8, 2020, 5:08 p.m.