\HeaderA{get.fold.change.and.t.test}{Compute fold change and t-test statistics between two experimental groups}{get.fold.change.and.t.test}
\keyword{misc}{get.fold.change.and.t.test}
\begin{Description}\relax
Generate fold changes (and possibly means) for a pair of experimental groups
\end{Description}
\begin{Usage}
\begin{verbatim}
  get.fold.change.and.t.test(x,group,members,logged = TRUE,a.order=NULL,b.order=NULL,method=c("unlogged","logged","median"));
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] an exprSet object 
\item[\code{group}] column in pData(x) 
\item[\code{members}] labels in group 
\item[\code{logged}] is the AffyBatch data logged? 
\item[\code{a.order}] For a pairwise comparison the ordering of the first group of replicates
\item[\code{b.order}] For a pairwise comparison the ordering of the second group of replicates
\item[\code{method}] What method should be used to calculate the average for the fold-change - can be either "logged","unlogged","median" 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Given an exprSet object, generate quick stats for pairwise
comparisons between a pair of experimental groups. If a.order and
b.order are specified then a paired sample t-test will be conducted
between the groups, with the arrays in each group sorted according to
the ordering specified.

The fold-changes are computed from the average values across
replicates. By default this is done using the mean of the unlogged
values. The parameter, method allows the mean of the logged values or
the median to be used instead. T-tests are always computed with the
logged data.
\end{Details}
\begin{Value}
An object of class PairComp
\end{Value}
\begin{Author}\relax
Crispin J Miller
\end{Author}
\begin{References}\relax
http://bioinformatics.picr.man.ac.uk/
\end{References}
\begin{Examples}
\begin{ExampleCode}
  ## Not run: 
    pc <- get.fold.change.and.t.test(eset.rma,"group",c("A","P"))
  
## End(Not run)
\end{ExampleCode}
\end{Examples}


