\HeaderA{pairwise.wilcox.test}{Pairwise Wilcoxon rank sum tests}{pairwise.wilcox.test}
\keyword{htest}{pairwise.wilcox.test}
\begin{Description}\relax
Calculate pairwise comparisons between group levels with corrections
for multiple testing.
\end{Description}
\begin{Usage}
\begin{verbatim}
pairwise.wilcox.test(x, g, p.adjust.method = p.adjust.methods,
                      paired=FALSE, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] response vector. 
\item[\code{g}] grouping vector or factor. 
\item[\code{p.adjust.method}] method for adjusting p values (see
\code{\LinkA{p.adjust}{p.adjust}}). 
\item[\code{paired}] a logical indicating whether you want a paired test.
\item[\code{...}] additional arguments to pass to \code{\LinkA{wilcox.test}{wilcox.test}}.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Extra arguments that are passed on to \code{wilcox.test} may or may
not be sensible in this context. In particular,
only the lower triangle of the matrix of possible comparisons is being
calculated, so setting \code{alternative} to anything other than
\code{"two.sided"} requires that the levels of \code{g} are ordered
sensibly.
\end{Details}
\begin{Value}
Object of class \code{"pairwise.htest"}
\end{Value}
\begin{SeeAlso}\relax
\code{\LinkA{wilcox.test}{wilcox.test}}, \code{\LinkA{p.adjust}{p.adjust}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
attach(airquality)
Month <- factor(Month, labels = month.abb[5:9])
## These give warnings because of ties :
pairwise.wilcox.test(Ozone, Month)
pairwise.wilcox.test(Ozone, Month, p.adj = "bonf")
detach()
\end{ExampleCode}
\end{Examples}

