|
|
|
|
|
by muraiki
3011 days ago
|
|
To be more clear, when you run poisson.test(1, conf.level = 0.95) with the default values of T and r (which are both 1) you are performing the following two-sided hypothesis test: Null hypothesis: The true rate of events is 1 (r) with a time base of 1 (T). Alternative hypothesis: The true rate is not equal to 1. The reason that you end up with a p-value of 1 is because you've said that you've observed 1 event in a time base of 1 with a hypothesized rate of 1. So given this data, of course the probability of observing a rate equal to or more extreme than 1 is 1! As such, you're not actually testing anything about the data that you claim you are testing. I'm not trying to be harsh here, but please be careful when using statistics! |
|
> poisson.test(c(1, 11800), c(3, 1000000), alternative = c("two.sided"),conf.level = .93)
Comparison of Poisson rates
The lower bound of the CI approaches a rate ratio = 1 for a 93% confidence interval.Interestingly, if you multiply the CI I claimed before by the rate ratio instead of the expected rate, you get almost exactly the same CI as here.
* Note 11800 is about two years of pedestrian deaths and time units are in millions of miles. https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/...