<?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: AUC comparison between different models in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/AUC-comparison-between-different-models/m-p/603120#M174718</link>
    <description>&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could solve this problem. I appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nagi&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2019 06:01:42 GMT</pubDate>
    <dc:creator>Nagi</dc:creator>
    <dc:date>2019-11-11T06:01:42Z</dc:date>
    <item>
      <title>AUC comparison between different models</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AUC-comparison-between-different-models/m-p/602674#M174505</link>
      <description>&lt;DIV&gt;Hello, I am a beginner of SAS and I am struggling with AUC comparison between 2 different model.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In SAS, I can compare AUC between the nested(hierarchical) models using ROCCONTRAST. But, how about the different models like the following two logistic regression models?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1 . where sex = 0;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;model cvd = bmi;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2.&amp;nbsp; where sex = 1;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;model cvd = bmi;&amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The have the same independent variable but under different condition.&lt;/DIV&gt;&lt;DIV&gt;Is it possible to compare and test the difference in that case?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Nagi&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Nov 2019 04:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AUC-comparison-between-different-models/m-p/602674#M174505</guid>
      <dc:creator>Nagi</dc:creator>
      <dc:date>2019-11-08T04:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: AUC comparison between different models</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AUC-comparison-between-different-models/m-p/602721#M174531</link>
      <description>&lt;P&gt;Check the last curve .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data F;
 set sashelp.class(where=(sex='F'));
 y=ifn(_n_&amp;gt;4,1,0);
run;
data M;
 set sashelp.class(where=(sex='M'));
 y=ifn(_n_&amp;gt;4,1,0);
run;


data test;
 set sashelp.class;
 y=ifn(_n_&amp;lt;4,1,0);
 if _n_&amp;lt;10;
run;
data test_f;
 set f test(drop=y);
run;
data test_m;
 set m test(drop=y);
run;



proc logistic  data=test_f;
model y=age weight height;
output out=pred_f(where=(y is missing)) p=pred_f;
run;
proc logistic  data=test_m;
model y=age weight height;
output out=pred_m(where=(y is missing)) p=pred_m;
run;


data want;
 merge test(keep=y) 
 pred_f(keep=pred_f)  pred_m(keep=pred_m);
run;
proc logistic data=want;
model y=pred_f pred_m/nofit;
roc 'F' pred=pred_f ;
roc 'M' pred=pred_m;
run;



&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Nov 2019 12:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AUC-comparison-between-different-models/m-p/602721#M174531</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-11-08T12:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: AUC comparison between different models</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AUC-comparison-between-different-models/m-p/602998#M174656</link>
      <description>Thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;In IFN function, what does "_n_&amp;gt;4" mean?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Nagi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 09 Nov 2019 17:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AUC-comparison-between-different-models/m-p/602998#M174656</guid>
      <dc:creator>Nagi</dc:creator>
      <dc:date>2019-11-09T17:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: AUC comparison between different models</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AUC-comparison-between-different-models/m-p/603048#M174690</link>
      <description>&lt;P&gt;I just made some dummy Y . i.e. the first 4 obs have y=1 ,others have y=0 .&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 10:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AUC-comparison-between-different-models/m-p/603048#M174690</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-11-10T10:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: AUC comparison between different models</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AUC-comparison-between-different-models/m-p/603120#M174718</link>
      <description>&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could solve this problem. I appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nagi&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 06:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AUC-comparison-between-different-models/m-p/603120#M174718</guid>
      <dc:creator>Nagi</dc:creator>
      <dc:date>2019-11-11T06:01:42Z</dc:date>
    </item>
  </channel>
</rss>

