Incidence rate ratios for a CPB fit
Value
A "ud_irr" data frame – the package-wide rate-ratio contract
(columns term, equation, ratio, estimate, lower, upper,
method) shared by every irr() method; here with bootstrap percentile
intervals from the stored draws.
Examples
# \donttest{
set.seed(8); x <- rnorm(200)
N <- pmax(round(exp(1.5 + 0.4 * x) / 0.5), 1); y <- rbinom(200, N, 0.5)
fit <- cpb(y ~ x, data.frame(y = y, x = x)[y > 0, ], se = "bootstrap", B = 40)
irr(fit)
#> term equation ratio estimate lower upper method
#> (Intercept) count IRR 4.473 4.320 4.661 bootstrap (stored)
#> x count IRR 1.502 1.434 1.549 bootstrap (stored)
# }