The R Project SVN R

Rev

Rev 68948 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68948 Rev 90154
Line 12... Line 12...
12
     ratio between two rate parameters.
12
     ratio between two rate parameters.
13
}
13
}
14
\usage{
14
\usage{
15
poisson.test(x, T = 1, r = 1,
15
poisson.test(x, T = 1, r = 1,
16
    alternative = c("two.sided", "less", "greater"),
16
    alternative = c("two.sided", "less", "greater"),
17
    conf.level = 0.95)
17
    conf.level = 0.95, two.sided.method = c("minlike", "central"))
18
}
18
}
19
\arguments{
19
\arguments{
20
  \item{x}{number of events. A vector of length one or two.}
20
  \item{x}{number of events. A vector of length one or two.}
21
  \item{T}{time base for event count. A vector of length one or two. }
21
  \item{T}{time base for event count. A vector of length one or two. }
22
  \item{r}{hypothesized rate or rate ratio}
22
  \item{r}{hypothesized rate or rate ratio}
23
  \item{alternative}{indicates the alternative hypothesis and must be
23
  \item{alternative}{indicates the alternative hypothesis and must be
24
    one of \code{"two.sided"}, \code{"greater"} or \code{"less"}.
24
    one of \code{"two.sided"}, \code{"greater"} or \code{"less"}.
25
    You can specify just the initial letter.}
25
    You can specify just the initial letter.}
26
  \item{conf.level}{confidence level for the returned confidence
26
  \item{conf.level}{confidence level for the returned confidence
27
    interval.}
27
    interval.}
-
 
28
  \item{two.sided.method}{a character string specifying the method for
-
 
29
    computing two-sided p-values, must be one of \code{"minlike"}
-
 
30
    (default) or \code{"central"}, or an abbreviation thereof.
-
 
31
    See \sQuote{Details} in the help for \code{\link{binom.test}}.
-
 
32
  }
28
}
33
}
29
\details{
34
\details{
30
  Confidence intervals are computed similarly to those of
35
  Confidence intervals are computed similarly to those of
31
  \code{\link{binom.test}} in the one-sample case, and using
36
  \code{\link{binom.test}} in the one-sample case, and using
32
  \code{\link{binom.test}} in the two sample case.
37
  \code{\link{binom.test}} in the two sample case.
-
 
38
 
-
 
39
  It is intended to change the default method for computing two-sided
-
 
40
  p-values from \I{minlike} to central to make these match the confidence
-
 
41
  intervals.
33
}
42
}
34
\value{
43
\value{
35
  A list with class \code{"htest"} containing the following components:
44
  A list with class \code{"htest"} containing the following components:
36
  \item{statistic}{the number of events (in the first sample if there
45
  \item{statistic}{the number of events (in the first sample if there
37
    are two.)}
46
    are two.)}