<?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: genmod distribution in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/genmod-distribution/m-p/679873#M32707</link>
    <description>&lt;P&gt;The variables in a linear regression &lt;A href="https://blogs.sas.com/content/iml/2018/08/27/on-the-assumptions-and-misconceptions-of-linear-regression.html" target="_self"&gt;do not need to be normally distributed.&amp;nbsp;&lt;/A&gt;If you are interested in inferential statistics such as confidence intervals or hypothesis tests, you can check the RESIDUALS for normality.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my advice is to look at the diagnostic plots (see the same link) and the Fit Statistics table to assess how well the model fits the data.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2020 19:03:58 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-08-27T19:03:58Z</dc:date>
    <item>
      <title>genmod distribution</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/genmod-distribution/m-p/679791#M32706</link>
      <description>&lt;P&gt;This is a follow-up question for my nonlinear regression post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/679512#M32691" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/nonlinear-regression/m-p/679512#M32691&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt; and anyone else with helpful suggestions,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am doing a non-linear regression with GENMOD. The outcome is continuous and distribution looks normal-ish, but Shapiro-Wilk test says that it is &lt;U&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/U&gt; normal. What would be the next step? Should I do some kind of transformation and then fit normal distribution? The other distributions of GENMOD are listed here, but normal seems like the best option:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_genmod_syntax22.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_genmod_syntax22.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 16:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/genmod-distribution/m-p/679791#M32706</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2020-08-27T16:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: genmod distribution</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/genmod-distribution/m-p/679873#M32707</link>
      <description>&lt;P&gt;The variables in a linear regression &lt;A href="https://blogs.sas.com/content/iml/2018/08/27/on-the-assumptions-and-misconceptions-of-linear-regression.html" target="_self"&gt;do not need to be normally distributed.&amp;nbsp;&lt;/A&gt;If you are interested in inferential statistics such as confidence intervals or hypothesis tests, you can check the RESIDUALS for normality.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my advice is to look at the diagnostic plots (see the same link) and the Fit Statistics table to assess how well the model fits the data.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 19:03:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/genmod-distribution/m-p/679873#M32707</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-08-27T19:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: genmod distribution</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/genmod-distribution/m-p/679928#M32711</link>
      <description>&lt;P&gt;I have two types of continuous outcome variables, and my intention was to fit a nonlinear regression on each of them. One outcome variable was &lt;A href="https://blogs.sas.com/content/iml/2012/04/04/fitting-a-poisson-distribution-to-data-in-sas.html" target="_self"&gt;Poisson-distributed&lt;/A&gt;, so I used GENMOD on it for Poisson regression. It is not a linear regression, its logarithm is linear. For it, the outcome variable y distribution has to be Poisson, and DIST= option in the model statement is poisson, and the link function is log. &lt;BR /&gt;Another of my outcome variables is really continuous, with fractions, not normally distributed. &lt;EM&gt;What is the meaning of DIST= normal option from GENMOD model statement?&lt;/EM&gt; If I use it, does the distribution of the outcome have to be normal? I see that the link function when I run the GENMOD with DIST=normal is identity. Is it applying a simple linear model (then why give it info about distribution)? My intention is to fit a nonlinear model for a continuous normal-ish distributed outcome variable.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Aug 2020 19:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/genmod-distribution/m-p/679928#M32711</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2020-08-29T19:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: genmod distribution</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/genmod-distribution/m-p/680023#M32714</link>
      <description>&lt;P&gt;I think the first endpoint is well covered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On to questions about the second:&lt;/P&gt;
&lt;P&gt;Why specify dist=normal?&amp;nbsp; Well, GENMOD is for fitting generalized linear models and the normal/Gaussian distribution is one of the family that can be fit.&amp;nbsp; It is the default.&amp;nbsp; The analysis would be similar to GLM, except that the solutions are solved by maximum likelihood methods rather than ordinary least squares.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You say the second is not normal.&amp;nbsp; Recall that the assumption of normality is only required for the residuals, and not for the variable itself.&amp;nbsp; So follow&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;'s advice and look at the diagnostic plots.&amp;nbsp; If it turns out that the residuals are NOT normally distributed (and please don't do a test, use your judgment on the results of the diagnostic plots), then you can consider other distributions.&amp;nbsp; Those distributions may depend on the functional form you are trying to fit, as some are not defined at zero (for instance, a beta or a gamma distribution).&amp;nbsp; And that brings me to the main point on the second variable. Could you share the function you wish to fit - you know y=f(&lt;STRONG&gt;X&lt;/STRONG&gt;), where we need to know the f(&lt;STRONG&gt;X&lt;/STRONG&gt;).&amp;nbsp; If it is fact non-linear (involves exponentiation, logs, trig functions or is a rational polynomial rather than a straight polynomial), then you have two options: Use PROC NLIN/NLMIXED or use an EFFECT statement in GENMOD to fit a spline.&amp;nbsp; A plot of the response variable as a function of the independent variable will be very useful for this decision.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 13:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/genmod-distribution/m-p/680023#M32714</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-08-28T13:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: genmod distribution</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/genmod-distribution/m-p/680259#M32723</link>
      <description>Thank you very much for helpful suggestions!&lt;BR /&gt;</description>
      <pubDate>Sun, 30 Aug 2020 00:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/genmod-distribution/m-p/680259#M32723</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2020-08-30T00:24:53Z</dc:date>
    </item>
  </channel>
</rss>

