<?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: Aggregate option changes Full Log Likelihood in PROC GENMOD in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Aggregate-option-changes-Full-Log-Likelihood-in-PROC-GENMOD/m-p/17584#M490</link>
    <description>The full log likelihood includes the combinatorial (n-choose-r) that is omitted from the log likelihood.  The value of the combinatorial depends on how the populations are defined and that is what the AGGREGATE= option does.  If no aggregation is done, each observation is treated as a separate population of size 1.</description>
    <pubDate>Tue, 24 Nov 2009 15:41:14 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2009-11-24T15:41:14Z</dc:date>
    <item>
      <title>Aggregate option changes Full Log Likelihood in PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Aggregate-option-changes-Full-Log-Likelihood-in-PROC-GENMOD/m-p/17583#M489</link>
      <description>I've just upgraded from SAS v9.1 to v9.2, and noticed the nice addition of AIC and other information criteria in the GENMOD procedure Goodness-of-fit output. However, I also noticed that the Deviance and Pearson Chi-square are not printed by default, but must be requested by the AGGREGATE option to the MODEL statement.&lt;BR /&gt;
&lt;BR /&gt;
The trouble is, for some reason that I don't quite understand, that when I leave the AGGREGATE option out, the Full Log Likelihood statistic becomes equal to the Log Likelihood, but when I give the AGGREGATE option the Full Log Likelihood statistic changes -- and consequently the AIC which is calculated from this (identical output in all other respects).&lt;BR /&gt;
&lt;BR /&gt;
As an example, the Goodness-of-fit output from two identical models (dist=bin,link=logit), save for the aggregate option. Note in particular the change in Full Log Likelihood.&lt;BR /&gt;
&lt;BR /&gt;
Without AGGREGATE option:&lt;BR /&gt;
               Criterion                     DF           Value        Value/DF&lt;BR /&gt;
               Log Likelihood                         -383.3357&lt;BR /&gt;
               Full Log Likelihood                    -383.3357&lt;BR /&gt;
               AIC (smaller is better)                 770.6714&lt;BR /&gt;
               AICC (smaller is better)                770.6818&lt;BR /&gt;
               BIC (smaller is better)                 780.7907&lt;BR /&gt;
&lt;BR /&gt;
With AGGREGATE option:&lt;BR /&gt;
               Criterion                     DF           Value        Value/DF&lt;BR /&gt;
               Deviance                    1082        722.9896          0.6682&lt;BR /&gt;
               Scaled Deviance             1082        722.9896          0.6682&lt;BR /&gt;
               Pearson Chi-Square          1082       1067.9233          0.9870&lt;BR /&gt;
               Scaled Pearson X2           1082       1067.9233          0.9870&lt;BR /&gt;
               Log Likelihood                         -383.3357&lt;BR /&gt;
               Full Log Likelihood                    -372.1276&lt;BR /&gt;
               AIC (smaller is better)                 748.2552&lt;BR /&gt;
               AICC (smaller is better)                748.2655&lt;BR /&gt;
               BIC (smaller is better)                 758.3744&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
All other output is identical. Should these values not be the same?</description>
      <pubDate>Mon, 16 Nov 2009 18:02:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Aggregate-option-changes-Full-Log-Likelihood-in-PROC-GENMOD/m-p/17583#M489</guid>
      <dc:creator>T</dc:creator>
      <dc:date>2009-11-16T18:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate option changes Full Log Likelihood in PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Aggregate-option-changes-Full-Log-Likelihood-in-PROC-GENMOD/m-p/17584#M490</link>
      <description>The full log likelihood includes the combinatorial (n-choose-r) that is omitted from the log likelihood.  The value of the combinatorial depends on how the populations are defined and that is what the AGGREGATE= option does.  If no aggregation is done, each observation is treated as a separate population of size 1.</description>
      <pubDate>Tue, 24 Nov 2009 15:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Aggregate-option-changes-Full-Log-Likelihood-in-PROC-GENMOD/m-p/17584#M490</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2009-11-24T15:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate option changes Full Log Likelihood in PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Aggregate-option-changes-Full-Log-Likelihood-in-PROC-GENMOD/m-p/17585#M491</link>
      <description>Hi again,&lt;BR /&gt;
&lt;BR /&gt;
I haven't replied to this in quite a long time, but I just got a similar issue with GENMOD that I want to ask about. Thanks for the reply, Dave.&lt;BR /&gt;
&lt;BR /&gt;
But first things first: I still don't quite follow how I would go about in order to request the Deviance and Pearson's Chi-square statistics that was printed by default in earlier releases but are not in v9.2, i.e. the goodness-of-fit statistics that compare the fitted model versus the full perfect-fit model (the model with one parameter per observation). I take it this should be what I get when I specify the AGGREGATE option without a variable list?&lt;BR /&gt;
&lt;BR /&gt;
The new issue that I have noticed is that specifying the AGGREGATE option can lead to problems of non-convergence. How come? Does this option affect the model fitting algorithm?</description>
      <pubDate>Fri, 26 Feb 2010 15:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Aggregate-option-changes-Full-Log-Likelihood-in-PROC-GENMOD/m-p/17585#M491</guid>
      <dc:creator>T</dc:creator>
      <dc:date>2010-02-26T15:31:36Z</dc:date>
    </item>
  </channel>
</rss>

