<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to calculate the differences of the least squares means in the inverse linked scale in poisson in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-differences-of-the-least-squares-means-in/m-p/851340#M336477</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; Then I want to get the &lt;STRONG&gt;incidence rate difference&lt;/STRONG&gt; 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&amp;nbsp; -4.2980 into 0.01360. can anyone show me how to do the transformation?&amp;nbsp;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code and the SAS output.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;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;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 889px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78903i61CEEC6122B3D7BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2022 13:37:24 GMT</pubDate>
    <dc:creator>Jiangwei</dc:creator>
    <dc:date>2022-12-28T13:37:24Z</dc:date>
    <item>
      <title>How to calculate the differences of the least squares means in the inverse linked scale in poisson</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-differences-of-the-least-squares-means-in/m-p/851340#M336477</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; Then I want to get the &lt;STRONG&gt;incidence rate difference&lt;/STRONG&gt; 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&amp;nbsp; -4.2980 into 0.01360. can anyone show me how to do the transformation?&amp;nbsp;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code and the SAS output.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;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;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 889px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78903i61CEEC6122B3D7BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 13:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-differences-of-the-least-squares-means-in/m-p/851340#M336477</guid>
      <dc:creator>Jiangwei</dc:creator>
      <dc:date>2022-12-28T13:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the differences of the least squares means in the inverse linked scale in poiss</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-differences-of-the-least-squares-means-in/m-p/851344#M336479</link>
      <description>e to the power -4.298 gives you the mean shown.&lt;BR /&gt;&lt;BR /&gt;I don't know why the differences don't show up on the original scale.</description>
      <pubDate>Wed, 28 Dec 2022 14:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-differences-of-the-least-squares-means-in/m-p/851344#M336479</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-28T14:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the differences of the least squares means in the inverse linked scale in poiss</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-differences-of-the-least-squares-means-in/m-p/851392#M336511</link>
      <description>&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After reading more materials, I find that&amp;nbsp;difference in rates cannot be directly obtained from the LSMEANS, but can be obtained by using&amp;nbsp;&lt;A href="http://support.sas.com/kb/62362.html" target="_blank"&gt;NLMeans macro&lt;/A&gt;, the&amp;nbsp;&lt;A href="http://support.sas.com/kb/58775.html" target="_blank"&gt;NLEstimate macro&lt;/A&gt;, or from PROC NLMIXED, see this website for reference (&lt;A href="http://support.sas.com/kb/37/344.html" target="_blank"&gt;http://support.sas.com/kb/37/344.html&lt;/A&gt; )&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 18:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-differences-of-the-least-squares-means-in/m-p/851392#M336511</guid>
      <dc:creator>Jiangwei</dc:creator>
      <dc:date>2022-12-28T18:31:34Z</dc:date>
    </item>
  </channel>
</rss>

