Hi,
I have data on cancer cases and population size for a rare cancer. So, the case count is low. I have calculated the crude rate and want to estimate its 95% CI. For low counts, it is recommended to use the Poisson exact method for CI estimation, the formula I am using are:

To implement this in STATA, I write the following command:
Here is a sample of my data:
_ID casesyear populationsize
A 6.1 10712
B 5.1 13393
My concern is that the estimated CIs do not match with the ones I calculated using Excel for validation purposes. In a thread for another function, I read this may be due to STATA using the approximation method, and not the exact method. My question is how can I know what is STATA using for the inchi2 function and how to ensure, through options, to ask it to calculate using the exact method?
Thanks
I have data on cancer cases and population size for a rare cancer. So, the case count is low. I have calculated the crude rate and want to estimate its 95% CI. For low counts, it is recommended to use the Poisson exact method for CI estimation, the formula I am using are:

To implement this in STATA, I write the following command:
Code:
generate LB= (100000/populationsize)*0.5*invchi2(2*casesyear, .05/2 ) generate UB= (100000/populationsize)*0.5*invchi2((2*casesyear)+1, 1-(.05/2))
Here is a sample of my data:
_ID casesyear populationsize
A 6.1 10712
B 5.1 13393
My concern is that the estimated CIs do not match with the ones I calculated using Excel for validation purposes. In a thread for another function, I read this may be due to STATA using the approximation method, and not the exact method. My question is how can I know what is STATA using for the inchi2 function and how to ensure, through options, to ask it to calculate using the exact method?
Thanks
Comment