~ubuntu-branches/ubuntu/vivid/r-cran-statmod/vivid

« back to all changes in this revision

Viewing changes to man/growthcurve.Rd

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-10-02 15:40:39 UTC
  • Revision ID: package-import@ubuntu.com-20131002154039-lee9ml5cj2tkgjga
Tags: upstream-1.4.18
Import upstream version 1.4.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
\name{growthcurve}
 
2
\alias{compareGrowthCurves}
 
3
\alias{compareTwoGrowthCurves}
 
4
\alias{plotGrowthCurves}
 
5
 
 
6
\title{Compare Groups of Growth Curves}
 
7
\description{
 
8
Do all pairwise comparisons between groups of growth curves using a permutation test. 
 
9
}
 
10
 
 
11
\usage{
 
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,...)
 
16
}
 
17
 
 
18
\arguments{
 
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()}}
 
31
}
 
32
 
 
33
\details{
 
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.
 
37
}
 
38
 
 
39
\value{
 
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}
 
46
}
 
47
 
 
48
\author{Gordon Smyth}
 
49
 
 
50
\references{
 
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}
 
56
 
 
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}
 
60
}
 
61
 
 
62
\seealso{
 
63
\code{\link{meanT}}, \code{\link{compareGrowthCurves}}, \code{\link{compareTwoGrowthCurves}}
 
64
}
 
65
 
 
66
\examples{
 
67
# A example with only one time
 
68
data(PlantGrowth)
 
69
compareGrowthCurves(PlantGrowth$group,as.matrix(PlantGrowth$weight))
 
70
# Can make p-values more accurate by nsim=10000
 
71
}
 
72
 
 
73
\keyword{regression}