<?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: ROC Curve ODS Displays in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359746#M12548</link>
    <description>&lt;P&gt;Got you. Are there any way to change the pattern of lines like:----x-x-x-x or ----o-o-o-o-o-- ? I really want to this types of lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bikash&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2017 17:48:19 GMT</pubDate>
    <dc:creator>bikashten</dc:creator>
    <dc:date>2017-05-18T17:48:19Z</dc:date>
    <item>
      <title>ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/339314#M11788</link>
      <description>&lt;P&gt;I am trying to overlay predictors&amp;nbsp;from a logistic regression using&amp;nbsp;ROC curves. I have done this many times, but noticed when using the below code, I do not get the same figures as in the&amp;nbsp;SAS document, see link.&amp;nbsp;In particular,&amp;nbsp;my lines in the&amp;nbsp;"ROC Curves for Comparisons"&amp;nbsp;do not have patterns (i.e., not dashed). I&amp;nbsp;would like the patterned lines, in that the image will be saved in black and white for publication purposes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will note,&amp;nbsp;I am using SAS 9.4 and the example comes from SAS 9.2.&amp;nbsp;I only have access to 9.4 and does anyone have a way for me to make lines patterned or distinguishable in a black and whiite image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;H&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example output that I desire:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_logistic_sect059.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_logistic_sect059.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code I am using:&lt;/P&gt;
&lt;PRE&gt;   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=roc(id=prob);
      model popind(event='0') = alb tp totscore / nofit;
      roc 'Albumin' alb;
      roc 'K-G Score' totscore;
      roc 'Total Protein' tp;
      roccontrast reference('K-G Score') / estimate e;
   run;
   ods graphics off;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 16:52:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/339314#M11788</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2017-03-08T16:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/339317#M11789</link>
      <description>&lt;P&gt;What's your output destination, PDF, RTF?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways, change the style to Journal, Journal1 or something in that family.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 16:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/339317#M11789</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-08T16:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/339319#M11790</link>
      <description>&lt;P&gt;NO output destination. I am reviewing and grabbing the image from the "Results Review" window.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 16:57:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/339319#M11790</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2017-03-08T16:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/339320#M11791</link>
      <description>&lt;P&gt;The first attachment is the desired graph and the second is what I get.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13535i743051DE040D8E5D/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SAS desired.png" title="SAS desired.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13536iE275F8B43648FA0B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SAS Output.png" title="SAS Output.png" /&gt;</description>
      <pubDate>Wed, 08 Mar 2017 17:00:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/339320#M11791</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2017-03-08T17:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/339324#M11792</link>
      <description>&lt;P&gt;Yes, that worked, but I had wondered why there was this difference as well, Is it a version change?&amp;nbsp; Attached is the Journal style version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13537i88F8D8FF1E9A7C4E/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SAS Journal Style.png" title="SAS Journal Style.png" /&gt;</description>
      <pubDate>Wed, 08 Mar 2017 17:12:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/339324#M11792</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2017-03-08T17:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/339330#M11793</link>
      <description>&lt;P&gt;With SAS 9.3, the HTML destination uses the &lt;STRONG&gt;HTMLBlue&lt;/STRONG&gt; style that has an ATTRPRIORITY=COLOR. &amp;nbsp;This means that group values first get different colors only. &amp;nbsp;When all 12 colors are used (with solid pattern), then the pattern (or marker symbol) changes to the next one. &amp;nbsp;If you want the color and pattern (or symbol) to change with each group, use one of the ATTRPRIORITY=NONE styles (almost all other SAS shipped styles). &amp;nbsp;You can also change the style behavior by specifying ATTRPRIORITY on the ODS Graphics statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See: &amp;nbsp;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2015/06/28/attributes-priority-for-the-inquiring-mind/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2015/06/28/attributes-priority-for-the-inquiring-mind/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 17:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/339330#M11793</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-03-08T17:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359446#M12526</link>
      <description>&lt;P&gt;I am also trying to get black and white gragh. Can I have code for this black and white graph?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 18:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359446#M12526</guid>
      <dc:creator>bikashten</dc:creator>
      <dc:date>2017-05-17T18:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359729#M12543</link>
      <description>&lt;P&gt;I believe this was the code piece I used, attention to the "Journal" part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
ods html style=Journal;
proc logistic data=pct_post plots=roc(id=prob);
	where final_pna_result ne 1;
	MODEL Final_PNA_result (event = '2') =	PCT_1_c							                                                        Temperature_in_ER
										WBC_1	/ nofit;
	roc 'Procalcitonin'  PCT_1_c;
	roc 'Temperature' Temperature_in_ER;
	roc 'White Blood Cell Count' WBC_1;
    roccontrast reference('Procalcitonin') / estimate e;
run;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2017 17:28:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359729#M12543</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2017-05-18T17:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359744#M12546</link>
      <description>Thank you,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 May 2017 17:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359744#M12546</guid>
      <dc:creator>bikashten</dc:creator>
      <dc:date>2017-05-18T17:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359746#M12548</link>
      <description>&lt;P&gt;Got you. Are there any way to change the pattern of lines like:----x-x-x-x or ----o-o-o-o-o-- ? I really want to this types of lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bikash&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 17:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359746#M12548</guid>
      <dc:creator>bikashten</dc:creator>
      <dc:date>2017-05-18T17:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359754#M12551</link>
      <description>&lt;P&gt;I don't know how to change line styles. I would imagine Sanjay or others may know how and it may require changing template settings or some code intensive process. I agree that it would be nice if that was a readily accessible option/process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 15:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359754#M12551</guid>
      <dc:creator>H</dc:creator>
      <dc:date>2017-05-19T15:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359883#M12556</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/136483"&gt;@bikashten&lt;/a&gt;&amp;nbsp;are you expecting the line to be X/O's or to be a dashed line with X/O's for the points?&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 06:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359883#M12556</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-19T06:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359948#M12560</link>
      <description>&lt;P&gt;different patterns of lines so that reviews can easily visualize&amp;nbsp;the differences between the treatments..&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 12:21:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/359948#M12560</guid>
      <dc:creator>bikashten</dc:creator>
      <dc:date>2017-05-19T12:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Displays</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/360463#M12572</link>
      <description>&lt;P&gt;It seems to me this&amp;nbsp;issue was resolved (as marked). &amp;nbsp;However, if you want to change the actual patterns using PROC LOGISTIC, you need to change the associated Style. &amp;nbsp;You can use PROC TEMPLATE, or the %MODSTYLE macro to derive a new style from JOURNAL with the changed patterns and then use that style on the destination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using SAS 9.40 or later wityh PROC SGPLOT, you can change the patterns in the code directly using the STYLEATTRS statement.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 15:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Displays/m-p/360463#M12572</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-05-22T15:06:11Z</dc:date>
    </item>
  </channel>
</rss>

