<?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 Re: Equation from Gamma on log link in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Equation-from-Gamma-on-log-link/m-p/272682#M14357</link>
    <description>&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS﻿&lt;/a&gt;.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;Thank you for your reply and all the links. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;I'm still trying to understand them.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2016 10:59:15 GMT</pubDate>
    <dc:creator>Miracle</dc:creator>
    <dc:date>2016-05-24T10:59:15Z</dc:date>
    <item>
      <title>Equation from Gamma on log link</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Equation-from-Gamma-on-log-link/m-p/272366#M14334</link>
      <description>&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;Dear Sir or Madam,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;How are you?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;Can I please ask your help on how can I write the equation out from the model below and how the Least Squares Means are calculated given the ML Parameter Estimates?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;Your help is greatly appreciated.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=temp plots=all;&lt;BR /&gt; class raps help inv ob;&lt;BR /&gt; model occ=raps help inv ob / dist=gamma link=log type3;&lt;BR /&gt; contrast 'linear' raps -2 -1 0 1 2;&lt;BR /&gt; lsmeans raps help inv ob / pdiff ilink;&lt;BR /&gt;run; &lt;BR /&gt;&lt;BR /&gt;                     Analysis Of Maximum Likelihood Parameter Estimates

                                           Standard       Wald 95%             Wald
Parameter                    DF  Estimate     Error   Confidence Limits  Chi-Square  Pr &amp;gt; ChiSq

Intercept                     1    4.9922    0.2273    4.5466    5.4377      482.19      &amp;lt;.0001
raps          0               1   -0.8423    0.2053   -1.2447   -0.4399       16.83      &amp;lt;.0001
raps          1               1   -0.2972    0.2080   -0.7049    0.1104        2.04      0.1529
raps          2               1   -0.1911    0.2112   -0.6050    0.2229        0.82      0.3657
raps          3               1    0.1381    0.2247   -0.3023    0.5786        0.38      0.5388
raps          4               0    0.0000    0.0000    0.0000    0.0000         .         .
Help          No              1   -0.3832    0.1302   -0.6384   -0.1280        8.66      0.0032
Help          yes             0    0.0000    0.0000    0.0000    0.0000         .         .
INV           At least once   1    0.3124    0.0822    0.1513    0.4735       14.44      0.0001
INV           Zero            0    0.0000    0.0000    0.0000    0.0000         .         .
OB            At least once   1    0.1512    0.0316    0.0892    0.2132       22.85      &amp;lt;.0001
OB            Zero            0    0.0000    0.0000    0.0000    0.0000         .         .
Scale                         1    2.2357    0.0661    2.1099    2.3690


                         raps Least Squares Means

                                                                   Standard
                    Standard                                       Error of
raps    Estimate       Error    z Value    Pr &amp;gt; |z|        Mean        Mean

0         4.1900     0.07543      55.55      &amp;lt;.0001     66.0259      4.9803
1         4.7351     0.08240      57.46      &amp;lt;.0001      113.87      9.3837
2         4.8413     0.08641      56.02      &amp;lt;.0001      126.63     10.9427
3         5.1704      0.1148      45.04      &amp;lt;.0001      175.99     20.2018
4         5.0323      0.2064      24.39      &amp;lt;.0001      153.29     31.6330


          Differences of raps Least Squares Means

                             Standard
raps    _raps    Estimate       Error    z Value    Pr &amp;gt; |z|

0       1         -0.5450     0.04245     -12.84      &amp;lt;.0001
0       2         -0.6512     0.06169     -10.56      &amp;lt;.0001
0       3         -0.9804     0.09989      -9.81      &amp;lt;.0001
0       4         -0.8423      0.2053      -4.10      &amp;lt;.0001&lt;BR /&gt;...&lt;/CODE&gt;&lt;/PRE&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>Mon, 23 May 2016 05:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Equation-from-Gamma-on-log-link/m-p/272366#M14334</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2016-05-23T05:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Equation from Gamma on log link</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Equation-from-Gamma-on-log-link/m-p/272535#M14345</link>
      <description>&lt;P&gt;The easiest way to see the model is to &lt;A href="http://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_self"&gt;use the CODE statement to create DATA step statements&lt;/A&gt; that evaluate (or "score") the model. Then look at the file that is created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your parameter estimates, the model will look something like this:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;eta = 4.9922 +&lt;BR /&gt;(raps=0)*( -0.8423) + &lt;BR /&gt;(raps=1)*( -0.2972) + &lt;BR /&gt;(raps=2)*( -0.1911) + &lt;BR /&gt;(raps=3)*( 0.1381) + &lt;BR /&gt;(Help="No")*( -0.3832) + &lt;BR /&gt;(INV="At least once")*(0.3124) + &lt;BR /&gt;(OBS="At least once")*(0.1512);&lt;BR /&gt;Pred_occ = exp(eta);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the Help and INV and OBS variables have formats on them, then use the unformatted (raw) values instead of the formatted values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The LSMEANS are linear combinations of the parameter estimates. Because you used the ILINK option, those estimates are then transformed to the data scale. For details see&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_glm_details41.htm" target="_self"&gt;&amp;nbsp;the GLM documentation&lt;/A&gt;. &amp;nbsp;You might also want to read &lt;A href="http://support.sas.com/resources/papers/proceedings11/351-2011.pdf" target="_self"&gt;"CONTRAST and ESTIMATE Statements Made Easy:&amp;nbsp;The LSMESTIMATE Statement"&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 19:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Equation-from-Gamma-on-log-link/m-p/272535#M14345</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-23T19:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Equation from Gamma on log link</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Equation-from-Gamma-on-log-link/m-p/272682#M14357</link>
      <description>&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS﻿&lt;/a&gt;.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;Thank you for your reply and all the links. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;I'm still trying to understand them.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 10:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Equation-from-Gamma-on-log-link/m-p/272682#M14357</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2016-05-24T10:59:15Z</dc:date>
    </item>
  </channel>
</rss>

