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 )

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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