Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Analytics
- /
- Stat Procs
- /
- How to calculate incidence rates with poisson regression

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 06-18-2018 04:16 PM
(6210 views)

I have TB case surveillance data within a county from 2006-2012. I want to run a poisson regression and calculate incidence rates to determine which years had the highest incident rates and to identify any years with large outbreaks. I just want to make sure I am doing this right in sas, I was told to use the estimate statement and have never used it before.

This is my code:

```
Proc genmod data = TB;
class year(param=ref ref='2006');
model CASES = YEAR/ dist=poisson OFFSET=LOGN ;
estimate '2006' year 1 0 0 0 0 0 0 0 0 0 0 0/ exp;
estimate '2007' year 0 1 0 0 0 0 0 0 0 0 0 0/ exp;
estimate '2008' year 0 0 1 0 0 0 0 0 0 0 0 0/ exp;
estimate '2009' year 0 0 0 1 0 0 0 0 0 0 0 0 / exp;
estimate '2010' year 0 0 0 0 1 0 0 0 0 0 0 0 / exp;
estimate '2011' year 0 0 0 0 0 1 0 0 0 0 0 0 / exp;
estimate '2012' year 0 0 0 0 0 0 1 0 0 0 0 0/ exp;
estimate '2013' year 0 0 0 0 0 0 0 1 0 0 0 0/ exp;
estimate '2014' year 0 0 0 0 0 0 0 0 1 0 0 0 / exp;
estimate '2015' year 0 0 0 0 0 0 0 0 0 1 0 0/ exp;
estimate '2016' year 0 0 0 0 0 0 0 0 0 0 1 0 / exp;
estimate '2017' year 0 0 0 0 0 0 0 0 0 0 0 1 / exp;
run;
```

LOGN is a variable I created earlier that is equal to LOG(population). I have a variable for population data of each year.

Please let me know if I am using the estimate statement correctly? The output doesn't seem to be matching the case count numbers--for instance 2012 had the highest case count numbers but it is not the highest incidence rate...

This is my output from the contrast statements

Any help is appreciated! Thank you!

2 REPLIES 2

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. **Registration is now open through August 30th**. Visit the SAS Hackathon homepage.

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.