<?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: SAS GENMOD: How To Specify A Negative Inverse Link For Gamma Distribution in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-GENMOD-How-To-Specify-A-Negative-Inverse-Link-For-Gamma/m-p/603753#M29334</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Data source:&amp;nbsp;&lt;A href="https://www.stat.ncsu.edu/people/davidian/courses/st732/examples/ex11_3.sas" target="_blank" rel="noopener"&gt;https://www.stat.ncsu.edu/people/davidian/courses/st732/examples/ex11_3.sas&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Define a custom fwdlink and invlink:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data clots;
input u y;
x=log(u);
datalines;
5 118 
10  58 
15  42 
20  35 
30  27 
40  25 
60  21 
80  19 
100 18
;
run;

*default POWER(-1);
proc genmod data=clots;
   model y = x / dist=gamma
   				 link = POWER(-1);
   output out       = Residuals
          pred      = Pred;
run;

*user-defined -POWER(-1);
proc genmod data=clots;
   model y = x / dist=gamma;
   fwdlink link = -1*_MEAN_**-1;
   invlink ilink = -1*_XBETA_**-1;
   output out       = Residuals
          pred      = Pred;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Take a look at the parameter estimates!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-unison&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2019 04:08:23 GMT</pubDate>
    <dc:creator>unison</dc:creator>
    <dc:date>2019-11-13T04:08:23Z</dc:date>
    <item>
      <title>SAS GENMOD: How To Specify A Negative Inverse Link For Gamma Distribution</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-GENMOD-How-To-Specify-A-Negative-Inverse-Link-For-Gamma/m-p/603736#M29333</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering how to specify the gamma distribution's canonical &lt;STRONG&gt;negative inverse&lt;/STRONG&gt; link in the PROC GENMOD procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried leaving "LINK" blank, I saw that SAS automatically implemented a &lt;STRONG&gt;POWER(-1)&lt;/STRONG&gt; link. However, to my understanding, that is akin to the inverse, and not a negative inverse link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 01:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-GENMOD-How-To-Specify-A-Negative-Inverse-Link-For-Gamma/m-p/603736#M29333</guid>
      <dc:creator>MigMaster12</dc:creator>
      <dc:date>2019-11-13T01:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GENMOD: How To Specify A Negative Inverse Link For Gamma Distribution</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-GENMOD-How-To-Specify-A-Negative-Inverse-Link-For-Gamma/m-p/603753#M29334</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Data source:&amp;nbsp;&lt;A href="https://www.stat.ncsu.edu/people/davidian/courses/st732/examples/ex11_3.sas" target="_blank" rel="noopener"&gt;https://www.stat.ncsu.edu/people/davidian/courses/st732/examples/ex11_3.sas&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Define a custom fwdlink and invlink:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data clots;
input u y;
x=log(u);
datalines;
5 118 
10  58 
15  42 
20  35 
30  27 
40  25 
60  21 
80  19 
100 18
;
run;

*default POWER(-1);
proc genmod data=clots;
   model y = x / dist=gamma
   				 link = POWER(-1);
   output out       = Residuals
          pred      = Pred;
run;

*user-defined -POWER(-1);
proc genmod data=clots;
   model y = x / dist=gamma;
   fwdlink link = -1*_MEAN_**-1;
   invlink ilink = -1*_XBETA_**-1;
   output out       = Residuals
          pred      = Pred;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Take a look at the parameter estimates!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-unison&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 04:08:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-GENMOD-How-To-Specify-A-Negative-Inverse-Link-For-Gamma/m-p/603753#M29334</guid>
      <dc:creator>unison</dc:creator>
      <dc:date>2019-11-13T04:08:23Z</dc:date>
    </item>
  </channel>
</rss>

