\HeaderA{pmcorrect}{PM Correction}{pmcorrect}
\methaliasA{pmcorrect.mas}{pmcorrect}{pmcorrect.mas}
\methaliasA{pmcorrect.pmonly}{pmcorrect}{pmcorrect.pmonly}
\methaliasA{pmcorrect.subtractmm}{pmcorrect}{pmcorrect.subtractmm}
\keyword{manip}{pmcorrect}
\begin{Description}\relax
Corrects the PM intensities in a \code{\LinkA{ProbeSet}{ProbeSet}}
for nonspecific binding.
\end{Description}
\begin{Usage}
\begin{verbatim}
pmcorrect.pmonly(object)

pmcorrect.subtractmm(object)

pmcorrect.mas(object, contrast.tau=0.03, scale.tau=10, delta=2^(-20))
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] An object of class \code{\LinkA{ProbeSet}{ProbeSet}}.
\item[\code{contrast.tau}] a number denoting the contrast tau parameter in
the MAS 5.0 
pm correction algorithm.
\item[\code{scale.tau}] a number denoting the scale tau parameter in
the MAS 5.0 
pm correction algorithm.
\item[\code{delta}] a number denoting the detla parameter in
the MAS 5.0 
pm correction algorithm.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
These are the pm correction methods perfromed by Affymetrix MAS 4.0
(subtractmm) and MAS 5.0 (mas). See the Affymetrix Manual for details.
pmonly does what you think: does not change the PM values.
\end{Details}
\begin{Value}
A \code{\LinkA{ProbeSet}{ProbeSet}} for which the
\code{pm} slot contains the  corrected  PM values.
\end{Value}
\begin{References}\relax
Affymetrix MAS 4.0 and 5.0 manual
\end{References}
\begin{Examples}
\begin{ExampleCode}
if (require(affydata)) {
  data(Dilution)
  gn <- geneNames(Dilution)
  pps <- probeset(Dilution, gn[1])[[1]]

  pps.pmonly <- pmcorrect.pmonly(pps)
  pps.subtractmm <- pmcorrect.subtractmm(pps)
  pps.mas5 <- pmcorrect.mas(pps)
}
\end{ExampleCode}
\end{Examples}

