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

Hi, 

 

I am now using the PROC GENMOD to do the poisson regression to obtain the incidence rate of the outcome, I can get the incidence rate of the outcome in two exposure levels by using ILINK option in the LSMEANS.  Then I want to get the incidence rate difference between two exposure levels by using the DIFF option in the LSMEANS, however, it does not provide the difference's estimate and its confidence intervals on the scale of the mean (the inverse linked scale). Does anyone help me? And what is the inverse linked scale of poisson? I am really confused about the transformation from  -4.2980 into 0.01360. can anyone show me how to do the transformation? Thanks.

 

Below is the code and the SAS output.

proc genmod data=anadata. diet;
         class hieng_c;
         model chd = hieng_c / dist=poisson link=log offset=log_follow_time;
		 lsmeans hieng_c/diff=control means ilink cl plots=none;
         run;

 

Untitled.png

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jiangwei
Calcite | Level 5

Thank you for your reply!

 

After reading more materials, I find that difference in rates cannot be directly obtained from the LSMEANS, but can be obtained by using NLMeans macro, the NLEstimate macro, or from PROC NLMIXED, see this website for reference (http://support.sas.com/kb/37/344.html )

View solution in original post

2 REPLIES 2
PaigeMiller
Diamond | Level 26
e to the power -4.298 gives you the mean shown.

I don't know why the differences don't show up on the original scale.
--
Paige Miller
Jiangwei
Calcite | Level 5

Thank you for your reply!

 

After reading more materials, I find that difference in rates cannot be directly obtained from the LSMEANS, but can be obtained by using NLMeans macro, the NLEstimate macro, or from PROC NLMIXED, see this website for reference (http://support.sas.com/kb/37/344.html )

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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