getT: Get t-statistics from limma objects

Description Usage Arguments Value Author(s) Examples

View source: R/getT.R

Description

Get the t-statistics from a lmFit object.

Usage

1
getT(lmFitObj, coiIndex = 2L)

Arguments

lmFitObj

A lmFit object.

coiIndex

An integer specifying the coefficent of interest in the model for which to get the t-statistics for.

Value

A two column matrix with the t-statistics and the p-values of the coefficient of interest.

Author(s)

Andrew E Jaffe

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## From lmFit() example page
sd <- 0.3*sqrt(4/rchisq(100,df=4))
y <- matrix(rnorm(100*6,sd=sd),100,6)
rownames(y) <- paste("Gene",1:100)
y[1:2,4:6] <- y[1:2,4:6] + 2
design <- cbind(Grp1=1,Grp2vs1=c(0,0,0,1,1,1))

# Ordinary fit
library('limma')
fit <- lmFit(y,design)
## Get Ts
getT(fit)

LieberInstitute/jaffelab documentation built on Nov. 16, 2018, 4:20 p.m.