\HeaderA{PairContrast}{Pairwise comparison matrix}{PairContrast}
\keyword{models}{PairContrast}
\begin{Description}\relax
It returns all possible pairwise comparison.
\end{Description}
\begin{Usage}
\begin{verbatim}
PairContrast(n)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{n}] Number of levels in test term.
\end{ldescription}
\end{Arguments}
\begin{Value}
\begin{ldescription}
\item[\code{res}] All pairwise comparison matrix.
\end{ldescription}
\end{Value}
\begin{Author}\relax
Hyuna Yang
\end{Author}
\begin{Examples}
\begin{ExampleCode}
# load in abf1 data
data(abf1)
## Not run: 
fit.full.mix <- fitmaanova(abf1, formula = ~Strain+Sample, 
   random = ~Sample)
ftest.all = matest(abf1, fit.full.mix, test.method=c(1,1),
    shuffle.method="sample", term="Strain", n.perm= 100)
C = PairContrast(3)
ftest.pair = matest(abf1, fit.full.mix, Contrast = C, 
   term="Strain", n.perm=100)
## End(Not run)
\end{ExampleCode}
\end{Examples}

