Uses the exact chi-squared interval for the count assuming a Poisson model with fixed total person-time. This does not handle overdispersion, recurrent event dependence, or complex sampling. A count of zero has a lower bound of zero and a positive upper bound.
Examples
epi_rate_ci(data.frame(events = c(1, 2, 0), time = c(2, 3, 1)), events, time, multiplier = 100)
#> # A tibble: 1 × 6
#> events person_time estimate conf_low conf_high conf_level
#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 3 6 50 10.3 146. 0.95
