\HeaderA{norm1b}{Function for normalizing the mean and variance (or just the variance) of single replicate log ratios}{norm1b}
\keyword{loess}{norm1b}
\begin{Description}\relax
This performs a robust loess normalization of the variance of the log ratios in a single replicate experiment by regressing the absolute (mean normalized) log ratios on the log intensities and using the fitted values to scale the (mean normalized) log ratio for each gene.
\end{Description}
\begin{Usage}
\begin{verbatim}
norm1b(logratio, logintensity, span1 = 0.6, span2 = 0.2, mean.norm=TRUE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{logratio}] A vector or single-column matrix of log (base 2) ratios of gene expressions in two samples, if mean.norm is FALSE the log ratios should be already mean normalized.
\item[\code{logintensity}] A vector or single-column matrix of log (base 2) total intensities (defined as the product) of gene expressions in the two samples.
\item[\code{span1}] Proportion of data used to fit the loess regression of the log ratios on the log intensities for the mean normalization.
\item[\code{span2}] Proportion of data used to fit the loess regression of the absolute (mean normalized) log ratios on the log intensities for the variance normalization.
\item[\code{mean.norm}] A logical value indicating whether or not a mean normalization should be performed prior to the variance normalization.
\end{ldescription}
\end{Arguments}
\begin{Value}
A vector or single-column matrix of mean and variance normalized log (base 2) ratios of gene expressions in two samples.
\end{Value}
\begin{Author}\relax
N. Dean and A. E. Raftery
\end{Author}
\begin{References}\relax
N. Dean and A. E. Raftery (2005). Normal uniform mixture differential gene expression detection for cDNA microarrays.  BMC Bioinformatics. 6, 173-186.

\url{http://www.biomedcentral.com/1471-2105/6/173}
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{norm1a}{norm1a}},\code{\LinkA{norm1c}{norm1c}},\code{\LinkA{norm1d}{norm1d}},\code{\LinkA{norm2c}{norm2c}},\code{\LinkA{norm2d}{norm2d}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(like)
lR<-log(like[,1],2)-log(like[,2],2)
lI<-log(like[,1],2)+log(like[,2],2)

lRnorm<-norm1b(lR,lI,mean.norm=TRUE)

\end{ExampleCode}
\end{Examples}

