<?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: Dist= or link= in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610776#M29560</link>
    <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, would creating a new variable not be the same as using LOGN as a distribution in glimmix?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc glimmix data = my data;&lt;BR /&gt;ID Idn;&lt;BR /&gt;class diet strain;&lt;BR /&gt;model variable = diet|strain / DDFM = KENWARDROGER dist=logn;&lt;BR /&gt;lsmeans diet|strain;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2019 16:55:27 GMT</pubDate>
    <dc:creator>Paulet</dc:creator>
    <dc:date>2019-12-10T16:55:27Z</dc:date>
    <item>
      <title>Dist= or link=</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610658#M29556</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some of my variables are not normally distributed, however, plotting the residuals against a Lognormal scale in a QQ plot works. But how can I back transform dist= LogN in glimmix?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also used the link fuction (link = identity) in glimmix, however, I then get the same values as with a normal distribution. Is it correct that with the link function you use a normal distribution?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;greetings,&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>Tue, 10 Dec 2019 10:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610658#M29556</guid>
      <dc:creator>Paulet</dc:creator>
      <dc:date>2019-12-10T10:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dist= or link=</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610748#M29557</link>
      <description>&lt;P&gt;If the residuals are lognormally distributed, you can create a new variable logY = log(Y) where Y is the response variable (which must be positive). This is different from a GLIM model that has a log link. To see the difference, see the article&lt;A href="https://blogs.sas.com/content/iml/2015/09/16/plot-distrib-exp.html" target="_self"&gt; "Error distributions and exponential regression models"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which model you choose depends on whether you believe&amp;nbsp;that the effect of errors is multiplicative (the log(Y) model) or additive (the generalized linear model with a log link)..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 15:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610748#M29557</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-12-10T15:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dist= or link=</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610776#M29560</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, would creating a new variable not be the same as using LOGN as a distribution in glimmix?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc glimmix data = my data;&lt;BR /&gt;ID Idn;&lt;BR /&gt;class diet strain;&lt;BR /&gt;model variable = diet|strain / DDFM = KENWARDROGER dist=logn;&lt;BR /&gt;lsmeans diet|strain;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 16:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610776#M29560</guid>
      <dc:creator>Paulet</dc:creator>
      <dc:date>2019-12-10T16:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dist= or link=</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610781#M29561</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 21.33px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;However, would creating a new variable not be the same as using LOGN as a distribution in glimmix?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I think you are correct.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 17:24:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610781#M29561</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-12-10T17:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dist= or link=</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610788#M29562</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but sas cannot transform the results back with dist=logn right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to do that manually? And how would you transform the standard error back. Because if it is just as simple as e^std.error, the std error that is transformed back will be a lot different then if you use the non transferred data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 17:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610788#M29562</guid>
      <dc:creator>Paulet</dc:creator>
      <dc:date>2019-12-10T17:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dist= or link=</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610795#M29563</link>
      <description>&lt;P&gt;In general, there is no "back transformation" when you use the DIST= option. However, tor the DIST=lognormal, I guess you are asking if you can estimate the mean and variance of Y if you have estimates for log(Y). I believe the answer is yes, and &lt;A href="https://blogs.sas.com/content/iml/2014/06/04/simulate-lognormal-data-with-specified-mean-and-variance.html" target="_self"&gt;the formulas are not difficult,&lt;/A&gt;&amp;nbsp;but keeping everything straight can be a challenge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The standard errors are more difficult to obtain. It is NOT exp(stdErr). The way to back-transform standard errors is to use the Delta method, but I do not have an example program that performs the computation. However, &lt;A href="https://blogs.sas.com/content/iml/2018/12/12/essential-guide-bootstrapping-sas.html" target="_self"&gt;you could use bootstrap methods to estimate the standard errors&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From what I've seen in the past, it is not common to use DIST= and then try to transform the parameters to the normal distribution. A common scenario is to use a nonlinear LINK= transformation and then &lt;A href="https://blogs.sas.com/content/iml/2019/11/20/predicted-values-generalized-linear-models-ilink-sas.html" target="_self"&gt;use the ILINK option to back-transform&lt;/A&gt; the estimates and standard errors. Would using the LINK= and ILINK options be an option for you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry that I don't know a special purpose SAS option or program that you can use.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 18:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610795#M29563</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-12-10T18:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dist= or link=</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610798#M29564</link>
      <description>&lt;P&gt;No, sorry. I indeed red your comments in different topics about the Link and ilink, however, in my case both will be exactly the same... I do not know why however.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 18:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610798#M29564</guid>
      <dc:creator>Paulet</dc:creator>
      <dc:date>2019-12-10T18:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dist= or link=</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610831#M29565</link>
      <description>&lt;P&gt;Maybe I can use link and Ilink, but the code for log normal it is identity? However, this is also right for gaussian right?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 21:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dist-or-link/m-p/610831#M29565</guid>
      <dc:creator>Paulet</dc:creator>
      <dc:date>2019-12-10T21:07:11Z</dc:date>
    </item>
  </channel>
</rss>

