Hi there
I'm comparing two ways of modelling the change in a count over time while taking into account population size. Example code below. The first way is to model the count with ln(population) as an offset. The second way is to model the rate itself; when I do this, the width of the confidence intervals for the effect of "time" is (unsurprisingly) dependent on the rate multiplier for count. My question is how to get the width of the CI in the second way identical (or at least nearly identical) to the first way? I have a practical reason for doing this but, more importantly, I'm also interested theoretically in how the "perfect" rate multiplier can be obtained to reflect the true width of the CI. Grateful for any thoughts!
Thanks.
I'm comparing two ways of modelling the change in a count over time while taking into account population size. Example code below. The first way is to model the count with ln(population) as an offset. The second way is to model the rate itself; when I do this, the width of the confidence intervals for the effect of "time" is (unsurprisingly) dependent on the rate multiplier for count. My question is how to get the width of the CI in the second way identical (or at least nearly identical) to the first way? I have a practical reason for doing this but, more importantly, I'm also interested theoretically in how the "perfect" rate multiplier can be obtained to reflect the true width of the CI. Grateful for any thoughts!
Thanks.
Code:
clear input float(time pop count) 1 50 5 2 100 15 end gen logpop = ln(pop) gen rate100 = count/pop*100 gen rate1000 = count/pop*1000 glm count time, family(poisson) offset(logpop) link(log) eform nolog glm rate100 time, family(poisson) link(log) eform nolog glm rate1000 time, family(poisson) link(log) eform nolog
Comment