2
\alias{compareGrowthCurves}
3
\alias{compareTwoGrowthCurves}
4
\alias{plotGrowthCurves}
6
\title{Compare Groups of Growth Curves}
8
Do all pairwise comparisons between groups of growth curves using a permutation test.
12
compareGrowthCurves(group, y, levels=NULL, nsim=100, fun=meanT, times=NULL,
13
verbose=TRUE, adjust="holm")
14
compareTwoGrowthCurves(group, y, nsim=100, fun=meanT)
15
plotGrowthCurves(group, y, levels=sort(unique(group)), times=NULL, col=NULL,...)
19
\item{group}{vector or factor indicating group membership. Missing values are allowed in \code{compareGrowthCurves} but not in \code{compareTwoGrowthCurves}.}
20
\item{y}{matrix of response values with rows for individuals and columns for times. The number of rows must agree with the length of \code{group}. Missing values are allowed.}
21
\item{levels}{a character vector containing the identifiers of the groups to be compared. By default all groups with two more more members will be compared.}
22
\item{nsim}{number of permutations to estimated p-values.}
23
\item{fun}{a function defining the statistic used to measure the distance between two groups of growth curves.
24
Defaults to \code{\link{meanT}}.}
25
\item{times}{a numeric vector containing the column numbers on which the groups should be compared.
26
By default all the columns are used.}
27
\item{verbose}{should progress results be printed?}
28
\item{adjust}{method used to adjust for multiple testing, see \code{p.adjust}.}
29
\item{col}{vector of colors corresponding to distinct groups}
30
\item{...}{other arguments passed to \code{plot()}}
34
\code{compareTwoGrowthCurves} performs a permutation test of the difference between two groups of growth curves.
35
\code{compareGrowthCurves} does all pairwise comparisons between two or more groups of growth curves.
36
Accurate p-values can be obtained by setting \code{nsim} to some large value, \code{nsim=10000} say.
40
\code{compareTwoGrowthCurves} returns a list with two components, \code{stat} and \code{p.value}, containing the observed statistics and the estimated p-value. \code{compareGrowthCurves} returns a data frame with components
41
\item{Group1}{name of first group in a comparison}
42
\item{Group2}{name of second group in a comparison}
43
\item{Stat}{observed value of the statistic}
44
\item{P.Value}{estimated p-value}
45
\item{adj.P.Value}{p-value adjusted for multiple testing}
51
Elso, C. M., Roberts, L. J., Smyth, G. K., Thomson, R. J., Baldwin, T. M.,
52
Foote, S. J., and Handman, E. (2004). Leishmaniasis host response loci
53
(lmr13) modify disease severity through a Th1/Th2-independent pathway.
54
\emph{Genes and Immunity} 5, 93-100.
55
\url{http://www.nature.com/gene/journal/v5/n2/full/6364042a.html}
57
Baldwin, T., Sakthianandeswaren, A., Curtis, J., Kumar, B., Smyth, G. K., Foote, S., and Handman, E. (2007).
58
Wound healing response is a major contributor to the severity of cutaneous leishmaniasis in the ear model of infection.
59
\emph{Parasite Immunology} 29, 501-513. \url{http://www.blackwell-synergy.com/doi/abs/10.1111/j.1365-3024.2007.00969.x}
63
\code{\link{meanT}}, \code{\link{compareGrowthCurves}}, \code{\link{compareTwoGrowthCurves}}
67
# A example with only one time
69
compareGrowthCurves(PlantGrowth$group,as.matrix(PlantGrowth$weight))
70
# Can make p-values more accurate by nsim=10000