Jiangwei Tracker
https://communities.sas.com/kntur85557/tracker
Jiangwei TrackerThu, 12 Sep 2024 09:48:12 GMT2024-09-12T09:48:12ZRe: How to calculate the differences of the least squares means in the inverse linked scale in poiss
https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-differences-of-the-least-squares-means-in/m-p/851392#M336511
<P>Thank you for your reply!</P><P> </P><P>After reading more materials, I find that difference in rates cannot be directly obtained from the LSMEANS, but can be obtained by using <A href="http://support.sas.com/kb/62362.html" target="_blank">NLMeans macro</A>, the <A href="http://support.sas.com/kb/58775.html" target="_blank">NLEstimate macro</A>, or from PROC NLMIXED, see this website for reference (<A href="http://support.sas.com/kb/37/344.html" target="_blank">http://support.sas.com/kb/37/344.html</A> )</P>Wed, 28 Dec 2022 18:31:34 GMThttps://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-differences-of-the-least-squares-means-in/m-p/851392#M336511Jiangwei2022-12-28T18:31:34ZHow to calculate the differences of the least squares means in the inverse linked scale in poisson
https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-differences-of-the-least-squares-means-in/m-p/851340#M336477
<P>Hi, </P><P> </P><P>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 <STRONG>incidence rate difference</STRONG> 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? <SPAN>Thanks.</SPAN></P><P> </P><P>Below is the code and the SAS output.</P><PRE><CODE class="">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;</CODE></PRE><P> </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 889px;"><img src="https://communities.sas.com/t5/image/serverpage/image-id/78903i61CEEC6122B3D7BA/image-size/large?v=v2&px=999" role="button" title="Untitled.png" alt="Untitled.png" /></span></P><P> </P><P> </P><P> </P><P> </P><P> </P>Wed, 28 Dec 2022 13:37:24 GMThttps://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-differences-of-the-least-squares-means-in/m-p/851340#M336477Jiangwei2022-12-28T13:37:24Z