<?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: how to compare two models in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121254#M6373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as I saw in the example that you sent, the ROCCONTRAST compares the ROC Curves from different the 3 different models with the 3 variables. But you see, for me originally the data is the same, but to adjust the model with categorized data I had to do some modifications and I can't see how should I use this option to compare the curves, since not only the data (structural - variables in classes) but also the chosen variables, I would like to compare both final models from row - and categorized data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2012 14:34:41 GMT</pubDate>
    <dc:creator>danirecchia</dc:creator>
    <dc:date>2012-09-13T14:34:41Z</dc:date>
    <item>
      <title>how to compare two models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121251#M6370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one dataset and I want to model the probability of default from a loan. I used the logistic regression for it but with the data in different structures. I do use the same (original) data, but one model I used the row data and for another model I used the categorized data (I built all the categories) and now I want to be able to compare the two models in order to say if the structure of the data has some influence on the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tought I could maybe compare their misclassification rate, but how could I build such a test to make this comparison, since here I have only one value (the misclassification rate) for each model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have some idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 13:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121251#M6370</guid>
      <dc:creator>danirecchia</dc:creator>
      <dc:date>2012-09-13T13:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare two models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121252#M6371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One measure of quality of a logistic regression is the ROC curve (often summarized by the c-index).&amp;nbsp; This article provides a general method for comparing two ROC curves that were derived from the same underlying data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="cit-metadata"&gt;&lt;CITE&gt;DeLong ER, DeLong DM, Clarke-Pearson DL: Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach. &lt;SPAN class="cit-source"&gt;Biometrics&lt;/SPAN&gt; &lt;SPAN class="cit-vol"&gt;44&lt;/SPAN&gt;:&lt;SPAN class="cit-fpage"&gt;837&lt;/SPAN&gt;–845, &lt;SPAN class="cit-pub-date"&gt;1988&lt;/SPAN&gt;&lt;/CITE&gt;&lt;/P&gt;&lt;P class="cit-metadata"&gt;&lt;SPAN class="cit-pub-date"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cit-metadata"&gt;&lt;SPAN class="cit-pub-date"&gt;At one point, there was a SAS macro around to implement the comparison, but I haven't looked for it in a while.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cit-metadata"&gt;&lt;SPAN class="cit-pub-date"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cit-metadata"&gt;&lt;SPAN class="cit-pub-date"&gt;Doc Muhlbaier&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cit-metadata"&gt;&lt;SPAN class="cit-pub-date"&gt;Duke&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 14:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121252#M6371</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-09-13T14:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare two models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121253#M6372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need the macro anymore. This is now built into PROC LOGISTIC via the ROCCONTRAST statement: &lt;A href="http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_logistic_sect066.htm" title="http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_logistic_sect066.htm"&gt;http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_logistic_sect066.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 14:22:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121253#M6372</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-09-13T14:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare two models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121254#M6373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as I saw in the example that you sent, the ROCCONTRAST compares the ROC Curves from different the 3 different models with the 3 variables. But you see, for me originally the data is the same, but to adjust the model with categorized data I had to do some modifications and I can't see how should I use this option to compare the curves, since not only the data (structural - variables in classes) but also the chosen variables, I would like to compare both final models from row - and categorized data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 14:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121254#M6373</guid>
      <dc:creator>danirecchia</dc:creator>
      <dc:date>2012-09-13T14:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare two models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121255#M6374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rick, I guess I am dating myself....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan, Rick's example will work for your situation as long as the dependent variable (LoanDefault, say) is the same.&amp;nbsp; Just specify multiple predictor variables in the ROC statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc logistic data=_last_ plots=roc(id=prob);&lt;/P&gt;&lt;P&gt;&amp;nbsp; CLASS d e f;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model LoanDefault = a b c d e f / nofit;&lt;/P&gt;&lt;P&gt;&amp;nbsp; roc 'Model1' a b c;&lt;/P&gt;&lt;P&gt;&amp;nbsp; roc 'Model2' d e f;&lt;/P&gt;&lt;P&gt;&amp;nbsp; roccontrast reference('Model1') / estimate e;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics off;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 17:03:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121255#M6374</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-09-13T17:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare two models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121256#M6375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fastest and easiest way is to compare the c-stat values between the 2 models.&amp;nbsp; c-stat ranges between 0.5 and 1.&amp;nbsp; The higher the c-stat, the better the performance and accuracy of the model.&amp;nbsp; And PROC LOGISTIC returns c-stat. c-stat is nothing but the area between the 45 degree line and the curve, which is the ROC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 17:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121256#M6375</guid>
      <dc:creator>tarek03</dc:creator>
      <dc:date>2012-09-13T17:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare two models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121257#M6376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Doc@Duke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for the explanation! I see now, what should I do. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 18:15:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121257#M6376</guid>
      <dc:creator>danirecchia</dc:creator>
      <dc:date>2012-09-13T18:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare two models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121258#M6377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey tarek03,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yep, the c-statistic is a very used measure and I tought on this comparison but you see, if I just look for the values of the c-statistic I am not able to compare them. But now, whith the ROCCONTRAST I know what to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I also think that a very interesting test would be the one, which I could compare the misclassification rate from the models, maybe this could be more specific on the discrimination power of the model. But for this case I don't know yet what to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 18:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-compare-two-models/m-p/121258#M6377</guid>
      <dc:creator>danirecchia</dc:creator>
      <dc:date>2012-09-13T18:20:33Z</dc:date>
    </item>
  </channel>
</rss>

