write.fit {limma} | R Documentation

## Write MArrayLM Object to a File

### Description

Write a microarray linear model fit a file.

### Usage

    write.fit(fit, results=NULL, FStat=NULL, file, digits=2, adjust="none")

### Arguments

`fit` | object of class `MArrayLM` containing the results of a linear model fit
`results` | object of class `TestResults`
`FStat` | numeric vector such as `FStat(fit)`
`file` | character string giving name of file
`digits` | integer indicating precision to be used
`adjust` | character string specifying method to use to adjust the P-values for multiple testing, e.g., "holm" or "fdr". See `p.adjust` for the available options. If `NULL` or `"none"` then the P-values are not adjusted.

### Details

This function writes a tab-delimited text file containing for each gene (1) the average log-intensity, (2) the log-ratios, (3) moderated t-statistics, (4) F-statistic if available, (5) classification if available and (6) gene names and annotation.

### Value

No value is produced but a file is written to the current working directory.

### Author(s)

Gordon Smyth

### See Also

`write` in the base library.

An overview of linear model functions in limma is given by 5.LinearModels.

[Package limma version 1.9.6 Index]