Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

coef

Extract a matrix of model coefficients/standard errors


Description

Note: results tables with log2 fold change, p-values, adjusted p-values, etc. for each gene are best generated using the results function. The coef function is designed for advanced users who wish to inspect all model coefficients at once.

Usage

## S3 method for class 'DESeqDataSet'
coef(object, SE = FALSE, ...)

Arguments

object

a DESeqDataSet returned by DESeq, nbinomWaldTest, or nbinomLRT.

SE

whether to give the standard errors instead of coefficients. defaults to FALSE so that the coefficients are given.

...

additional arguments

Details

Estimated model coefficients or estimated standard errors are provided in a matrix form, number of genes by number of parameters, on the log2 scale. The columns correspond to columns of the model matrix for final GLM fitting, i.e., attr(dds, "modelMatrix").

Author(s)

Michael Love

Examples

dds <- makeExampleDESeqDataSet(m=4)
dds <- DESeq(dds)
coef(dds)[1,]
coef(dds, SE=TRUE)[1,]

DESeq2

Differential gene expression analysis based on the negative binomial distribution

v1.30.1
LGPL (>= 3)
Authors
Michael Love [aut, cre], Constantin Ahlmann-Eltze [ctb], Kwame Forbes [ctb], Simon Anders [aut, ctb], Wolfgang Huber [aut, ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.