BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
sasgorilla
Pyrite | Level 9

Hi. I'm starting to do a poisson regression with proc genmod and wanted to first check that I have my data summarized correctly. I assumed that I could test this with the following crude model without covariates and compare the estimate with a by-hand calculation of outcome/person-time. 

proc genmod data=summarized;
	MODEL outcome=  /dist=poisson link=log offset=logdenomcount;
	estimate "Crude" intercept 1;
run;

However,  the estimate and my by-hand rate are not the same. Is my assumption these should match incorrect? 

1 ACCEPTED SOLUTION

Accepted Solutions
sasgorilla
Pyrite | Level 9

Ah, I just went back and realized I made my offset off of the _Freq_ when I did my proc summary and not the summed denominator count. Therefore my numbers were off. 

 

Correcting that now produces a match with my by-hand calculation as I thought should be the case. 

View solution in original post

2 REPLIES 2
sasgorilla
Pyrite | Level 9

Ah, I just went back and realized I made my offset off of the _Freq_ when I did my proc summary and not the summed denominator count. Therefore my numbers were off. 

 

Correcting that now produces a match with my by-hand calculation as I thought should be the case. 

Ksharp
Super User

If you want to get RATE ,check "Mean Estimate" column .

If you want to get COUNT, check "L'Beta Estimate" column.

 

Ksharp_0-1740032225825.png

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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.

Discussion stats
  • 2 replies
  • 743 views
  • 0 likes
  • 2 in conversation