<?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: K fold CV - how to draw &amp;quot;average&amp;quot; ROC in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374377#M19623</link>
    <description>&lt;P&gt;How to create the graph, but it would also be useful to calculate the AUC. I essentially have output predicted probabilities from fitting my training data on each of my test data, I just dont know how to use this to create the ROC curve, ultimately get the AUC.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2017 05:29:03 GMT</pubDate>
    <dc:creator>Melk</dc:creator>
    <dc:date>2017-07-10T05:29:03Z</dc:date>
    <item>
      <title>K fold CV - how to draw "average" ROC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374368#M19621</link>
      <description>&lt;P&gt;I am running a 5 fold cross validation on my logistic model. The predicted probability of the outcome for each test group was generated using data from the training groups. My question is - how can I draw a "mean" ROC curve to summarize my results?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 04:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374368#M19621</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-07-10T04:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: K fold CV - how to draw "average" ROC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374376#M19622</link>
      <description>&lt;P&gt;Are you asking how to do the calculation or how to create the graph?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 05:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374376#M19622</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-10T05:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: K fold CV - how to draw "average" ROC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374377#M19623</link>
      <description>&lt;P&gt;How to create the graph, but it would also be useful to calculate the AUC. I essentially have output predicted probabilities from fitting my training data on each of my test data, I just dont know how to use this to create the ROC curve, ultimately get the AUC.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 05:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374377#M19623</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-07-10T05:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: K fold CV - how to draw "average" ROC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374497#M19624</link>
      <description>&lt;P&gt;What do you mean by 'average' ROC .&lt;/P&gt;
&lt;P&gt;You can use ROC= option to get those K-fold&amp;nbsp; roc dataset,&lt;/P&gt;
&lt;P&gt;but you might not get the average roc, x could be different, you could try.&lt;/P&gt;
&lt;P&gt;if you want plot all these 5 roc in the same graph. here is an example .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=test9 ;
model good_bad(event='good')= &amp;amp;varlist 
/outroc=_roc lackfit scale=none aggregate rsquare firth;
output out=_output h=h c=c cbar=cbar;
run;

data plot_roc;
 set roc(in=ina) _roc;
 if ina then dsn='训练集';
  else dsn='测试集';
run;

title ' ';
proc sgplot data=plot_roc  aspect=1;
 series x=_1MSPEC_ y=_SENSIT_ /group=dsn smoothconnect name='x';
 lineparm x=0 y=0 slope=1/lineattrs=(color=verylightgray);
 xaxis grid;
 yaxis grid;
 keylegend 'x' /title=' ' location=inside position=nw across=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Jul 2017 13:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374497#M19624</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-10T13:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: K fold CV - how to draw "average" ROC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374590#M19625</link>
      <description>&lt;P&gt;Well, I thought that since the training data was used to fit the test data, which is a different portion of the main dataset each time, those predicted probabilities could be used to get an "average" ROC (by basically combining each of the test datasets, each with predicted probabilities of the outcome, together). So, I basically have a dataset with my outcome, predictors, and predicted probabilities from my k fold CV and dont know how to construct the ROC curve.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 16:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374590#M19625</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-07-10T16:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: K fold CV - how to draw "average" ROC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374662#M19631</link>
      <description>&lt;P&gt;If you have a data set of actual binary responses and predicted probabilities (from whatever source), you can produce an ROC plot and analysis using the PRED= option in the ROC statement of PROC LOGISTIC as shown in &lt;A href="http://support.sas.com/kb/41364" target="_self"&gt;this note&lt;/A&gt;. &amp;nbsp;Notice that the predicted probabilities in each of the examples come from other modeling methods than PROC LOGISTIC.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 19:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374662#M19631</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2017-07-10T19:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: K fold CV - how to draw "average" ROC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374685#M19634</link>
      <description>&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 19:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/K-fold-CV-how-to-draw-quot-average-quot-ROC/m-p/374685#M19634</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-07-10T19:48:19Z</dc:date>
    </item>
  </channel>
</rss>

