<?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 proc logistic AIC in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-AIC/m-p/41668#M1799</link>
    <description>I tried to build a logistic model using the output of AIC to assess the fit of the models in the model building process. The underlying data set was the exactly the same in each step. The AIC was shown for intercept only model and the intercept with covariates model as standard output from SAS proc logistic. I supposed that the AIC for intercept only model would be exactly the same for each step and the AIC for intercept with covariates model would be different depending on the covariates included in the model (the lower the AIC, the better the fit of the model). However, what I found out was that the AIC for intercept only model changed in each step even though the underlying data set is the same. I don't under stand why this happened. Also, doesn't that mean that the AIC for intercept with covariates model is not trustable. If so, how do I get the true AIC statistic? Thanks</description>
    <pubDate>Sat, 06 Jun 2009 06:50:38 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-06T06:50:38Z</dc:date>
    <item>
      <title>proc logistic AIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-AIC/m-p/41668#M1799</link>
      <description>I tried to build a logistic model using the output of AIC to assess the fit of the models in the model building process. The underlying data set was the exactly the same in each step. The AIC was shown for intercept only model and the intercept with covariates model as standard output from SAS proc logistic. I supposed that the AIC for intercept only model would be exactly the same for each step and the AIC for intercept with covariates model would be different depending on the covariates included in the model (the lower the AIC, the better the fit of the model). However, what I found out was that the AIC for intercept only model changed in each step even though the underlying data set is the same. I don't under stand why this happened. Also, doesn't that mean that the AIC for intercept with covariates model is not trustable. If so, how do I get the true AIC statistic? Thanks</description>
      <pubDate>Sat, 06 Jun 2009 06:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-AIC/m-p/41668#M1799</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-06T06:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic AIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-AIC/m-p/41669#M1800</link>
      <description>Did you check that the number of observations used was the same at each step? This information is output by default. You won't be able to compare models by AIC unless the exact same observations are used when fitting each model. For example, missing variables on some of the covariates would cause PROC LOGISTIC to use a different set of observations.&lt;BR /&gt;
&lt;BR /&gt;
I particularly don't understand your statement :&lt;BR /&gt;
&lt;BR /&gt;
"However, what I found out was that the AIC for intercept only model changed in each step even though the underlying data set is the same. "&lt;BR /&gt;
&lt;BR /&gt;
What does it mean for the intercept only model to change at each step? Did the model syntax change?&lt;BR /&gt;
&lt;BR /&gt;
It would be helpful it you could post simplified SAS code, log, and output that demonstrate the issue.</description>
      <pubDate>Mon, 08 Jun 2009 17:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-AIC/m-p/41669#M1800</guid>
      <dc:creator>sfleming</dc:creator>
      <dc:date>2009-06-08T17:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic AIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-AIC/m-p/41670#M1801</link>
      <description>Thanks for the response. I did pay attention to the number of valid obeservations in the models. However, I didn't notice any null values or anything missing between each models, i.e. the modeling sample is exactly the same. What was changing was the number of covariates and their correponding functional forms (dummies vs. spline line) for which I believe would not change the AIC for intercept only models. The following is the statistics for the first 4 models&lt;BR /&gt;
&lt;BR /&gt;
Model	Criterion	Intercept Only	Intercept And Covariates&lt;BR /&gt;
1	AIC	119146.84	                95157.03&lt;BR /&gt;
1	SC	119157.56	                95639.37&lt;BR /&gt;
1	-2 Log L	119144.84	                95067.03&lt;BR /&gt;
2	AIC	449674.77	                361109.87&lt;BR /&gt;
2	SC	449685.49	                361324.25&lt;BR /&gt;
2	-2 Log L	449672.77	                361069.87&lt;BR /&gt;
3	AIC	457288.30	                359520.98&lt;BR /&gt;
3	SC	457299.02	                359788.95&lt;BR /&gt;
3	-2 Log L	457286.30	                359470.98&lt;BR /&gt;
4	AIC	462250.20	                356308.08&lt;BR /&gt;
4	SC	462260.92	                356640.36&lt;BR /&gt;
4	-2 Log L	462248.20	                356246.08&lt;BR /&gt;
&lt;BR /&gt;
as you may see that the AIC for intercept only model changed significantly from model 1 to model 2. The only difference between model 1 and model 2 wsa that the functional forms of the covariates changed from dummy variables to spline lines. Such functional form changes could result in changes in AIC for the intercept and covariates model due to the fit of the model and the degress of freedom reduction but it should not change the AIC for intercept only model. Moreover, if I used the stepwise selection option in proc logistic, the AIC for intercept only model remained the same which makes perfect sense. I am sure I missed something here. Thanks in advance for the help.</description>
      <pubDate>Tue, 09 Jun 2009 20:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-AIC/m-p/41670#M1801</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-09T20:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic AIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-AIC/m-p/41671#M1802</link>
      <description>My background is in the use of PROC MIXED, and in that context, I have read warnings against using Information Criteria to compare models unless the exact same observations are included in each.&lt;BR /&gt;
&lt;BR /&gt;
My best guess is that there are missing values in the covariates and that SAS drops all observations with a missing value on a covariate even to fit the Intercept Only model. To me, this makes sense because the 2 models cannot be compared unless they are fit on the exact same observations. When you fit a different model, different observations are dropped because the included covariates have a different pattern of missing data.&lt;BR /&gt;
&lt;BR /&gt;
During a quick check, I could not find this issue addressed in the SAS Help or on the Support site so take this opinion with a grain of salt. Hopefully someone more knowledgeable will chime in.</description>
      <pubDate>Wed, 10 Jun 2009 18:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-AIC/m-p/41671#M1802</guid>
      <dc:creator>sfleming</dc:creator>
      <dc:date>2009-06-10T18:28:23Z</dc:date>
    </item>
  </channel>
</rss>

