\HeaderA{stat.confband.text}{Rank genes according to the value of a statistic.}{stat.confband.text}
\keyword{manip}{stat.confband.text}
\begin{Description}\relax
Select values based on intensities binning.
\end{Description}
\begin{Usage}
\begin{verbatim}
stat.confband.text(M, A, crit1=0.025, crit2=crit1, nclass=5)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{A}] a vector giving the x-coordinates of the points in the scatter
plot. In the microarray context, this could be a vector of
average log intensities. ie A
\item[\code{M}] a vector giving the y-coordinates of the points in the scatter
plot. In the microarray context, this could be a vector of log
intensity ratios.
\item[\code{crit1}] The number of points to be selected.
If crit1 < 1, the crit1*100\% spots with the smallest M values
will be selected. If crit1 >= 1, the crit spots  with the
smallest M values are selected.
\item[\code{crit2}] Similar to "crit1".   If crit2 < 1, the crit2*100\%
spots with the largest M values will be selected. If crit2 >= 1,
the crit2 spots with the largest M values are selected.
\item[\code{nclass}] A single number giving the approximate number of
intensity depedent groups to consider.
\end{ldescription}
\end{Arguments}
\begin{Value}
A vector of selected spot index.
\end{Value}
\begin{SeeAlso}\relax
\code{\LinkA{stat.gnames}{stat.gnames}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
library(marray)
data(swirl)
aveA <- apply(maA(swirl), 1, mean.na)
aveM <- apply(maM(swirl), 1, mean.na)
stat.confband.text(aveM, aveA, crit1=20, crit2=50, nclass=5)
\end{ExampleCode}
\end{Examples}


