<?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: What is the difference between PROC GLM &amp;amp; GENMOD? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367904#M19305</link>
    <description>Would you please explain more precisely?&lt;BR /&gt;Which one is better?</description>
    <pubDate>Fri, 16 Jun 2017 22:36:31 GMT</pubDate>
    <dc:creator>aminkarimid</dc:creator>
    <dc:date>2017-06-16T22:36:31Z</dc:date>
    <item>
      <title>What is the difference between PROC GLM &amp; GENMOD?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367869#M19302</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everybody,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to regress dummy variables, which are time-based, on volume and use PROC GENMOD and PROC GLM statements to create dummies automatically. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I fit the same data&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to GLM and GENMOD, I get&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;different parameter estimates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here&amp;nbsp;are some examples of my codes:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Regressing dummy variables on normalized volume variable using calculated volume;
proc genmod data=Sampledata_adjvol;
   class TRD_EVENT_ROUFOR / param=effect;
   model adjusted_volume = TRD_EVENT_ROUFOR / noscale;
   ods select ParameterEstimates;
run;

* Same analysis by using the CLASS statement;
proc glm data=Sampledata_adjvol;
   class TRD_EVENT_ROUFOR;              /* Generates dummy variables internally */
   model adjusted_volume = TRD_EVENT_ROUFOR / solution;
   ods select ParameterEstimates;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Would&amp;nbsp;you please explain why I get different results when I run this two procedures?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 19:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367869#M19302</guid>
      <dc:creator>aminkarimid</dc:creator>
      <dc:date>2017-06-16T19:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between PROC GLM &amp; GENMOD?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367880#M19303</link>
      <description>&lt;P&gt;These two PROCs use a different model paramterization, but the results really give the same model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the results to match identically, in PROC GENMOD you want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;class TRD_EVENT_ROUFOR / param=GLM;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 21:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367880#M19303</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-06-16T21:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between PROC GLM &amp; GENMOD?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367883#M19304</link>
      <description>&lt;P&gt;Note that the parameterization methods of GLM/EFFECT are not what you usually find in textbooks. It would be the REF parameterization method that's most commonly seen in textbooks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 20:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367883#M19304</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-16T20:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between PROC GLM &amp; GENMOD?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367904#M19305</link>
      <description>Would you please explain more precisely?&lt;BR /&gt;Which one is better?</description>
      <pubDate>Fri, 16 Jun 2017 22:36:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367904#M19305</guid>
      <dc:creator>aminkarimid</dc:creator>
      <dc:date>2017-06-16T22:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between PROC GLM &amp; GENMOD?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367907#M19306</link>
      <description>&lt;P&gt;There isn't a better, they are different.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a statistical concept though, not really a SAS concept.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/37/273.html" target="_blank"&gt;http://support.sas.com/kb/37/273.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And see the docs specifically for the CLASS statement of the PROC of interest.&lt;/P&gt;
&lt;P&gt;ie PROC GLM&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glm_syntax04.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glm_syntax04.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 23:00:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367907#M19306</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-16T23:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between PROC GLM &amp; GENMOD?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367929#M19307</link>
      <description>&lt;P&gt;The most different thing between GLM and GENMOD is estimating method is different.&lt;/P&gt;
&lt;P&gt;GLM is OLS, while GENMOD is MLE .&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2017 03:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367929#M19307</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-06-17T03:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between PROC GLM &amp; GENMOD?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367936#M19308</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138303"&gt;@aminkarimid&lt;/a&gt; wrote:&lt;BR /&gt;Would you please explain more precisely?&lt;BR /&gt;Which one is better?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In the future, could you please indicate which comment your are replying to?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2017 11:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367936#M19308</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-06-17T11:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between PROC GLM &amp; GENMOD?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367937#M19309</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;The most different thing between GLM and GENMOD is estimating method is different.&lt;/P&gt;
&lt;P&gt;GLM is OLS, while GENMOD is MLE .&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Certainly this is true in general, but ... in a simple modelling situation such as this, where there are only dummy variable effects to be estimated, and the errors are iid normally distributed, wouldn't MLE and OLS produce the same model?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2017 11:15:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367937#M19309</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-06-17T11:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between PROC GLM &amp; GENMOD?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367945#M19310</link>
      <description>&lt;PRE&gt;
Sure. MLE and OLS will generate the similar parameter estimator .But they are different estimating method. Aren't you agree with that ?

&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Jun 2017 13:03:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367945#M19310</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-06-17T13:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between PROC GLM &amp; GENMOD?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367965#M19311</link>
      <description>&lt;P&gt;So, do you say that the difference between estimated parameters using GENMOD &amp;amp; GLM is because of difference between the method of MLE and OLS in former and latter statements?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2017 18:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367965#M19311</guid>
      <dc:creator>aminkarimid</dc:creator>
      <dc:date>2017-06-17T18:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between PROC GLM &amp; GENMOD?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367968#M19312</link>
      <description>&lt;P&gt;As I stated above, I think the difference in coefficients is that you have chosen a different parameterization of the model than the one PROC GLM uses. But these are the same models, when you go to predict you get the exact same predicted values — and in fact if you combine terms in the models to un-do the effect of the different parameterization, you will see that the coefficients are the same in both models.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2017 19:56:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/367968#M19312</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-06-17T19:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between PROC GLM &amp; GENMOD?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/368109#M19314</link>
      <description>&lt;P&gt;Thanks. I find it very helpful.&lt;/P&gt;&lt;P&gt;&lt;A title="Parameterization of Model Effects" href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_introcom_a0000000507.htm" target="_self"&gt;Parameterization of Model Effects&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jun 2017 21:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/368109#M19314</guid>
      <dc:creator>aminkarimid</dc:creator>
      <dc:date>2017-06-18T21:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between PROC GLM &amp; GENMOD?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/368268#M19316</link>
      <description>&lt;P&gt;I agree that difference in the coefficients are due to difference in the parametrization. The two models specified are the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, there are quite big difference in how the two procedure works. Proc genmod use numerical methods to maximize the likelihood functions. Further, there can be differences in p-values as&amp;nbsp;proc genmod use -2LogQ tests, and proc glm use F-tests. If data is normal distributed then proc glm should be used as it is more exact, while the distributions of test statistics in proc genmod are based on approximations.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 12:23:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-difference-between-PROC-GLM-amp-GENMOD/m-p/368268#M19316</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2017-06-19T12:23:36Z</dc:date>
    </item>
  </channel>
</rss>

