🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 10-29-2010 01:57 PM
(22762 views)
I am trying to calculate Poisson-based 95% confidence intervals for rates. Is there a way to do this in SAS? The rates are based on small numbers of events, so the standard normal-based 95% CIs aren't appropriate.
Thanks.
Thanks.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
See this usage note that discusses the modeling or rates and computing rate estimates and confidence limits:
http://support.sas.com/kb/24188
http://support.sas.com/kb/24188
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Would you describe your problem with a little more detail? You speak of rates, so that leads me to believe that you have differing exposure time for different observations. But it would be good to know more precisely what data you have and what you want to estimate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
We are using birth and population data to calculate birth rates. The confidence intervals will be used to compare rates by time intervals and locations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Assuming that the data are distributed as Poisson conditional on the population size, then you can obtain confidence intervals for the Poisson rate using the GENMOD procedure as follows:
proc genmod data=mydata;
model birth_count = / dist=poisson offset=log_PopSize;
estimate "log(rate)" intercept 1;
run;
where log_PopSize is the (natural) log of the population size and birth_count should be self explanatory. The above code would provide the rate for a population of size 1. You probably don't want to specify the rate for a population of size 1. In order to specify the rate for a population of size K, compute log_PopSize as
log_PopSize = log(PopSize / K);
Of course, the variable log_PopSize needs to be constructed before executing the GENMOD procedure. You might also want to examine whether a negative binomial distribution specification provides a better fit than the Poisson.
proc genmod data=mydata;
model birth_count = / dist=poisson offset=log_PopSize;
estimate "log(rate)" intercept 1;
run;
where log_PopSize is the (natural) log of the population size and birth_count should be self explanatory. The above code would provide the rate for a population of size 1. You probably don't want to specify the rate for a population of size 1. In order to specify the rate for a population of size K, compute log_PopSize as
log_PopSize = log(PopSize / K);
Of course, the variable log_PopSize needs to be constructed before executing the GENMOD procedure. You might also want to examine whether a negative binomial distribution specification provides a better fit than the Poisson.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
See this usage note that discusses the modeling or rates and computing rate estimates and confidence limits:
http://support.sas.com/kb/24188
http://support.sas.com/kb/24188