I want to compare two standardized incidence ratios (SIR) obtained in stratified analyses. I read in Mocci et al (2013) that they used the rate parameter test and cited the book Statistical models in epidemiology by Clayton and Hills.
I can't find anything else online and don't want to pay to buy the book. Does anyone know and can elaborate on this?
Best Answer
You can use a R package called
popEpi
(available in CRAN) to calculate confidence intervals for the ratio of two SIRs. Here is an example where I assume that the observed (o1 and o2) and expected (e1 and e2) cases known:sir_ratio
refers to the book Statistics with Confidence: Confidence Intervals and Statistical Guidelines, Douglas Altman. The method is also explained in the help page of thesir_ratio
. Note that the ratio of two SIRs might give biased results if e.g. the age structures in both SIRs are very different (more about that see Breslow & Day, 1987).You can also test whether the two SIRs are equal using a likelihood ratio test of two nested Poisson regression models. However this will only give you a p-value. You can check functions
sir
andsir_exp
frompopEpi
for LRT.