<?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 Help on PROC GENMOD in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-on-PROC-GENMOD/m-p/118998#M35409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a financial panel data , I would like to run regression using Proc genmod , clustering by firm. I am surprised the out put does not provide Adjusted R square when the y variable is not binary. Could somebody help how to get adjusted R squared when I do regression using PROC GENMOD . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 06:35:19 GMT</pubDate>
    <dc:creator>factorhedge</dc:creator>
    <dc:date>2013-06-26T06:35:19Z</dc:date>
    <item>
      <title>Help on PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-on-PROC-GENMOD/m-p/118998#M35409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a financial panel data , I would like to run regression using Proc genmod , clustering by firm. I am surprised the out put does not provide Adjusted R square when the y variable is not binary. Could somebody help how to get adjusted R squared when I do regression using PROC GENMOD . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 06:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-on-PROC-GENMOD/m-p/118998#M35409</guid>
      <dc:creator>factorhedge</dc:creator>
      <dc:date>2013-06-26T06:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help on PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-on-PROC-GENMOD/m-p/118999#M35410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC GENMOD uses maximum likelihood methods rather than ordinary least squares to obtain estimates.&amp;nbsp; Consequently, adjusted R squared as it is usually thought of is not (and really cannot be) reported.&amp;nbsp; Further, I wonder how you "cluster" by firm in a procedure that does not accommodate hierarchical clustering--that would be the domain of PROC GLIMMIX.&amp;nbsp; But I could be misunderstanding the terminology of the particular field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, Google is always your friend.&amp;nbsp; It tells me that scaled deviance and Pearson's chi square are the usual methods for generalized linear models, including those with a normal distribution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 17:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-on-PROC-GENMOD/m-p/118999#M35410</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-06-26T17:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help on PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-on-PROC-GENMOD/m-p/729087#M35411</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Is my generalized linear model with normal probability distribution and an identity link function a good fit?:&lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE class="table" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt; &lt;COL class="rowheader" /&gt; &lt;COL class="data" /&gt; &lt;COL class="data" /&gt; &lt;COL class="data" /&gt; &lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="header" colspan="4" scope="colgroup"&gt;Criteria For Assessing Goodness Of Fit&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="header" scope="colgroup"&gt;Criterion&lt;/TH&gt;
&lt;TH class="header" scope="colgroup"&gt;DF&lt;/TH&gt;
&lt;TH class="header" scope="colgroup"&gt;Value&lt;/TH&gt;
&lt;TH class="header" scope="colgroup"&gt;Value/DF&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="b rowheader"&gt;Scaled Deviance&lt;/TD&gt;
&lt;TD class="b data"&gt;2153&lt;/TD&gt;
&lt;TD class="b data"&gt;10351789298&lt;/TD&gt;
&lt;TD class="b data"&gt;4808076.7757&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="b rowheader"&gt;Pearson Chi-Square&lt;/TD&gt;
&lt;TD class="b data"&gt;2153&lt;/TD&gt;
&lt;TD class="b data"&gt;10351789298&lt;/TD&gt;
&lt;TD class="b data"&gt;4808076.7757&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="b rowheader"&gt;Scaled Pearson X2&lt;/TD&gt;
&lt;TD class="b data"&gt;2153&lt;/TD&gt;
&lt;TD class="b data"&gt;10351789298&lt;/TD&gt;
&lt;TD class="b data"&gt;4808076.7757&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="b rowheader"&gt;Log Likelihood&lt;/TD&gt;
&lt;TD class="b data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="b data"&gt;-5175896643&lt;/TD&gt;
&lt;TD class="b data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="b rowheader"&gt;Full Log Likelihood&lt;/TD&gt;
&lt;TD class="b data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="b data"&gt;-5175896643&lt;/TD&gt;
&lt;TD class="b data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="b rowheader"&gt;AIC (smaller is better)&lt;/TD&gt;
&lt;TD class="b data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="b data"&gt;10351793320&lt;/TD&gt;
&lt;TD class="b data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="b rowheader"&gt;AICC (smaller is better)&lt;/TD&gt;
&lt;TD class="b data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="b data"&gt;10351793321&lt;/TD&gt;
&lt;TD class="b data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="b rowheader"&gt;BIC (smaller is better)&lt;/TD&gt;
&lt;TD class="b data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="b data"&gt;10351793417&lt;/TD&gt;
&lt;TD class="b data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 15:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-on-PROC-GENMOD/m-p/729087#M35411</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2021-03-25T15:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help on PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-on-PROC-GENMOD/m-p/729093#M35412</link>
      <description>&lt;P&gt;I am going to vote no on being a good fit.&amp;nbsp; You would really like the Chi squared/DF ratio to be close to one, and here it is over 4 million. So either your model or your distribution is inappropriate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 15:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-on-PROC-GENMOD/m-p/729093#M35412</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-03-25T15:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help on PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-on-PROC-GENMOD/m-p/730426#M35420</link>
      <description>&lt;P&gt;While I don't know if its performance has been studied in detail, Zheng (2000) presents an R-square measure for the GEE (marginal) model which is easy to compute. The following uses the respiratory data in Stokes et. al. (2012) that is modeled using a binary logistic GEE model.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=resp2;
class id center;
model dichot(event="1") = di_base / link=logit dist=bin;
repeated subject=id*center / type=un;
output out=out resraw=res pred=pred;
run;
proc sql; 
select 1-(uss(res)/css(dichot)) as R2marg from out;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Zheng, B. (2000). Summarizing the goodness of fit of generalized linear models for longitudinal data. Statistics in Medicine, 19(10), 1265-1275.&lt;/P&gt;
&lt;P&gt;Stokes, M. et. al. (2012). Categorical Data Analysis Using SAS, Third Edition, SAS Institute.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 16:25:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-on-PROC-GENMOD/m-p/730426#M35420</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-03-31T16:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help on PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-on-PROC-GENMOD/m-p/730666#M35443</link>
      <description>&lt;P&gt;Learned something big there - that the summarizing options from PROC MEANS are available in PROC SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 12:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-on-PROC-GENMOD/m-p/730666#M35443</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-04-01T12:42:30Z</dc:date>
    </item>
  </channel>
</rss>

