Cox confidence interval for the ratio of two Poisson variables | R Documentation |
Cox confidence interval for the ratio of two Poisson variables.
cox.poisrat(x, y, alpha = 0.05)
col.coxpoisrat(x, y, alpha = 0.05)
x |
A numeric vector or a matrix with count data. |
y |
A numeric vector or a matrix with count data. |
alpha |
The 1 - confidence level. The default value is 0.05. |
Cox confidence interval for the ratio of two Poisson means is calculated.
For the cox.poisrat a vector with three elements, the ratio and the lower and upper confidence interval limits. For the col.coxpoisrat a matrix with three columns, the ratio and the lower and upper confidence interval limits.
Michail Tsagris
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr>
Krishnamoorthy K., Peng J. and Zhang D. (2016). Modified large sample confidence intervals for Poisson distributions: Ratio, weighted average, and product of means. Communications in Statistics-Theory and Methods, 45(1): 83-97.
correls, Table
x <- rpois(100, 10)
y <- rpois(100, 10)
res<-cox.poisrat(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.