\HeaderA{write.fit}{Write MArrayLM Object to a File}{write.fit}
\keyword{IO}{write.fit}
\begin{Description}\relax
Write a microarray linear model fit a file.
\end{Description}
\begin{Usage}
\begin{verbatim}
write.fit(fit, results=NULL, file, digits=2, adjust="none", sep="\t", ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{fit}] object of class \code{MArrayLM} containing the results of a linear model fit
\item[\code{results}] object of class \code{TestResults}
\item[\code{file}] character string giving name of file
\item[\code{digits}] integer indicating precision to be used
\item[\code{adjust}] character string specifying method to use to adjust the P-values for multiple testing, e.g., "holm" or "fdr". See \code{\LinkA{p.adjust}{p.adjust}} for the available options. If \code{NULL} or \code{"none"} then the P-values are not adjusted.
\item[\code{sep}] the field separator string. Values in the output file will be separated by this string.
\item[\code{...}] other arguments are passed to \code{write.table}
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
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.
\end{Details}
\begin{Value}
No value is produced but a file is written to the current working directory.

The p-value adjustment is done separately for each column.
This is equivalent to \code{decideTests} with \code{method="separate"}.
\end{Value}
\begin{Author}\relax
Gordon Smyth
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{write}{write}} in the base library.

An overview of linear model functions in limma is given by \LinkA{06.LinearModels}{06.LinearModels}.
\end{SeeAlso}


