<?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 How to change title of ROCOverlay plot? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-title-of-ROCOverlay-plot/m-p/835713#M23181</link>
    <description>&lt;P&gt;The default title of an ROCOverlay plot produced by PROC LOGISTIC is "ROC Curves for Comparisons". Is there an easy way to change this title?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 21:21:24 GMT</pubDate>
    <dc:creator>derekg</dc:creator>
    <dc:date>2022-09-28T21:21:24Z</dc:date>
    <item>
      <title>How to change title of ROCOverlay plot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-title-of-ROCOverlay-plot/m-p/835713#M23181</link>
      <description>&lt;P&gt;The default title of an ROCOverlay plot produced by PROC LOGISTIC is "ROC Curves for Comparisons". Is there an easy way to change this title?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 21:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-title-of-ROCOverlay-plot/m-p/835713#M23181</guid>
      <dc:creator>derekg</dc:creator>
      <dc:date>2022-09-28T21:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to change title of ROCOverlay plot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-title-of-ROCOverlay-plot/m-p/835717#M23182</link>
      <description>&lt;P&gt;The &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_logistic_syntax01.htm" target="_self"&gt;Proc Logistics Doc&lt;/A&gt; states you can use set the&amp;nbsp;&lt;SPAN&gt;_ROCOVERLAY_ENTRYTITLE macro variable to the desired title.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Using an example from there:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let _ROCOVERLAY_ENTRYTITLE = Whatever Title You Want;

data roc;
   input alb tp totscore popind @@;
   totscore = 10 - totscore;
   datalines;
3.0 5.8 10 0   3.2 6.3  5 1   3.9 6.8  3 1   2.8 4.8  6 0
3.2 5.8  3 1   0.9 4.0  5 0   2.5 5.7  8 0   1.6 5.6  5 1
3.8 5.7  5 1   3.7 6.7  6 1   3.2 5.4  4 1   3.8 6.6  6 1
4.1 6.6  5 1   3.6 5.7  5 1   4.3 7.0  4 1   3.6 6.7  4 0
2.3 4.4  6 1   4.2 7.6  4 0   4.0 6.6  6 0   3.5 5.8  6 1
3.8 6.8  7 1   3.0 4.7  8 0   4.5 7.4  5 1   3.7 7.4  5 1
3.1 6.6  6 1   4.1 8.2  6 1   4.3 7.0  5 1   4.3 6.5  4 1
3.2 5.1  5 1   2.6 4.7  6 1   3.3 6.8  6 0   1.7 4.0  7 0
3.7 6.1  5 1   3.3 6.3  7 1   4.2 7.7  6 1   3.5 6.2  5 1
2.9 5.7  9 0   2.1 4.8  7 1   2.8 6.2  8 0   4.0 7.0  7 1
3.3 5.7  6 1   3.7 6.9  5 1   3.6 6.6  5 1
;
 
ods graphics on;
proc logistic data=roc plots(only)=roc;
   LogisticModel: model popind(event='0') = alb tp totscore;
   output out=LogiOut predicted=LogiPred;       /* output predicted value, to be used later */
run;

data ExpertPred;
   input ExpertPred @@;
   datalines;
0.95 0.2  0.05 0.3  0.1  0.6  0.8  0.5 
0.1  0.25 0.1  0.2  0.05 0.1  0.05 0.1 
0.4  0.1  0.2  0.25 0.4  0.7  0.1  0.1 
0.3  0.2  0.1  0.05 0.1  0.4  0.4  0.7
0.2  0.4  0.1  0.1  0.9  0.7  0.8  0.25
0.3  0.1  0.1 
;

data Survival;
   merge LogiOut ExpertPred;
run;

proc logistic data=Survival;
   model popind(event='0') = LogiPred ExpertPred / nofit;
   roc 'Logistic' pred=LogiPred;
   roc 'Expert'   pred=ExpertPred;
   ods select ROCOverlay;
   /* optional: for a statistical comparison, use ROCCONTRAST stmt and remove the ODS SELECT stmt */
   *roccontrast reference('Expert Model') / estimate e;
run;

%symdel _ROC_ENTRYTITLE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PeterClemmensen_0-1664401106899.png" style="width: 534px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75694i7C07FE29DA4507CA/image-dimensions/534x534?v=v2" width="534" height="534" role="button" title="PeterClemmensen_0-1664401106899.png" alt="PeterClemmensen_0-1664401106899.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 21:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-title-of-ROCOverlay-plot/m-p/835717#M23182</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-09-28T21:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to change title of ROCOverlay plot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-title-of-ROCOverlay-plot/m-p/835719#M23183</link>
      <description>&lt;P&gt;If I read the documentation on the ROC plot these macro variables may be what you want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV id="statug.logistic.logisticproc" class="AAsection"&gt;
&lt;DIV class="AAoptions"&gt;
&lt;DL class="AAoptions"&gt;
&lt;DD&gt;
&lt;DIV class="AAoptions"&gt;
&lt;DL class="AAoptions"&gt;
&lt;DD&gt;
&lt;DIV class="AAdeflist"&gt;
&lt;DL class="AAdeflist"&gt;
&lt;DT&gt;&lt;SPAN class=" AAterm "&gt;&lt;SPAN class=" AAkeyword"&gt;_ROC_ENTRYTITLE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;sets the first title line on the ROC plot.&lt;/P&gt;
&lt;/DD&gt;
&lt;DT&gt;&lt;SPAN class=" AAterm "&gt;&lt;SPAN class=" AAkeyword"&gt;_ROC_ENTRYTITLE2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;sets the second title line on the ROC plot.&lt;/P&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Example of use, again from the documentation:&lt;/P&gt;
&lt;PRE&gt;   %let _ROC_ENTRYTITLE=New Title;
   Submit PROC LOGISTIC statement
   %symdel _ROC_ENTRYTITLE;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 21:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-title-of-ROCOverlay-plot/m-p/835719#M23183</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-28T21:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to change title of ROCOverlay plot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-title-of-ROCOverlay-plot/m-p/835722#M23184</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;I was there too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I think those are for the pure ROC plot though and not the &lt;SPAN&gt;overlaid ROC plot?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 21:44:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-title-of-ROCOverlay-plot/m-p/835722#M23184</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-09-28T21:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to change title of ROCOverlay plot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-title-of-ROCOverlay-plot/m-p/835725#M23185</link>
      <description>&lt;P&gt;or&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV id="statug.logistic.logisticproc" class="AAsection"&gt;
&lt;DIV class="AAoptions"&gt;
&lt;DL class="AAoptions"&gt;
&lt;DD&gt;
&lt;DIV class="AAoptions"&gt;
&lt;DL class="AAoptions"&gt;
&lt;DD&gt;
&lt;DIV class="AAdeflist"&gt;
&lt;DL class="AAdeflist"&gt;
&lt;DT&gt;&lt;SPAN class=" AAterm "&gt;&lt;SPAN class=" AAkeyword"&gt;_ROCOVERLAY_ENTRYTITLE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;sets the title on the overlaid ROC plot.&lt;/P&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;I was there too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I think those are for the pure ROC plot though and not the &lt;SPAN&gt;overlaid ROC plot?&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 21:46:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-title-of-ROCOverlay-plot/m-p/835725#M23185</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-28T21:46:58Z</dc:date>
    </item>
  </channel>
</rss>

