<?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 Editing Template Output Problem Step in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470350#M16211</link>
    <description>&lt;P&gt;One thing that jumps out at me is that the ";" after "listing" is incorrect. The options after listing are part of the statement. DId you get a syntax error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing; 
style = MyROCoverStyle 
image_dpi = 1000
gpath = "/folders/myshortcuts/sf_myfolders/PhD/"; &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Jun 2018 15:31:24 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2018-06-14T15:31:24Z</dc:date>
    <item>
      <title>ROC Curve ODS Editing Template Output Problem Step</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470304#M16203</link>
      <description>&lt;P&gt;I am trying to create one images that shows the ROC curves for four factors (&lt;SPAN&gt;&amp;nbsp;JIF16 JIF5 SNIP SJR). I wanted to change the appearance for journal submission -- largely changing the font (sans-serif), no gridlines, removing top and right borders (if possible, optional), and ensuring a good dpi (they request 1200 but I can't seem to get that high without the java engine error). The code below is what I'm working with (largely from here: &lt;A href="http://support.sas.com/resources/papers/proceedings10/233-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/233-2010.pdf&lt;/A&gt;) . The final image will not be output and I get this error:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasWarning"&gt;WARNING: The seriesplot statement named 'Step' will not be drawn because one or more of the required arguments were not supplied.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The seriesplot statement will not be drawn because one or more of the required arguments were not supplied.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The scatterplot statement will not be drawn because one or more of the required arguments were not supplied.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: A blank graph is produced. For possible causes, see the graphics template language documentation.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong??&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on; 
ods trace on; 
ods select ROCOverlay ; 
ods output
ROCOverlay=ROCOverlaydata ROC = myROCdata; 
proc logistic data=subset plots=roc(id=prob);
model STROBE_act_none(event='0') = JIF16 JIF5 SNIP SJR /nofit; 
roc '2016 Journal Impact Factor' JIF16;
roc '5 Year Journal Impact Factor' JIF5;
roc 'Source Normalized Impact per Paper' SNIP;
roc 'SCImage Journal Rank' SJR;
roccontrast reference('2016 Journal Impact Factor') / estimate e; run; ods trace off; ods graphics off;

ods path work.templat(update) 
sashelp.tmplmst (read); 
proc template ;
define style styles.MyROCoverStyle; parent = styles.Journal;
style GraphFonts /
'GraphValueFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt)
'GraphLabelFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt)
'GraphTitleFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt)
'NodeDetailFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt)
'NodeInputLabelFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt)
'NodeLabelFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt)
'NodeTitleFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt)
'GraphTitle1Font' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt)
'GraphFootnoteFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt)
'GraphDataFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt)
'GraphLabel2Font' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt)
'GraphUnicodeFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt)
'GraphAnnoFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt)
'NodeLinkLabelFont' = ("&amp;lt;sans-serif&amp;gt;, &amp;lt;MTsans-serif&amp;gt;", 10pt);
 style GraphDataDefault / linethickness = 3px;
 style GraphAxisLines / linethickness = 1px;
 style GraphWalls / lineThickness = 0px FrameBorder = off;
 style graphdata1 / linestyle = 1 ContrastColor = red; 
 style graphdata2 / linestyle = 10 ContrastColor = black; 
 style graphdata3 / linestyle = 7 ContrastColor = blue;
 style graphdata4 / linestyle = 6 ContrastColor = green; 
define statgraph Graphics.ROCOverlay; 
 notes "STROBE Active Endorsement and Journal Impact Indices";
 dynamic _TITLE ;
 BeginGraph;
 entrytitle _TITLE;
 layout overlayequated /equatetype = square
 yaxisopts = ( gridDisplay = off
 label = "Sensitivity" 
 offsetmin = 0.05
 offsetmax = 0.05)
 
 xaxisopts = ( gridDisplay = off
 label = "1 - Specificity"
 offsetmin = 0.05
 offsetmax = 0.05)
 commonaxisopts = ( tickvaluelist =(0 .25 .5 .75 1)
 viewmin = 0
 viewmax = 1
 );
 lineparm x=0 y=0 slope=1 / extend = true
 lineattrs =( color = grey thickness = 1px);

 seriesplot y =_SENSIT_ x=_1MSPEC_ /
 connectorder = xaxis
 tip = (group y x)
 group = _ROC_
 index = _GROUP_
 name = "Step"
 primary = true
 lineattrs = (thickness = 1px);

 seriesplot y = _y_ x = _x_ / LINEATTRS = ( PATTERN = 4 thickness = 3px) 
 Connectorder = xaxis;
 scatterplot y = y_cutoff x = x_cutoff/ datalabel = cutoff
 markerattrs = (size = 10pt
symbol = circle weight = bold); 
 discretelegend "Step" / Title = "ROC Curve (Area)" 
 LOCATION = INSIDE
 HALIGN = RIGHT
 VALIGN = BOTTOM
 PAD = (RIGHT = 2PX bottom = 2px)
 ORDER = ROWMAJOR
 ACROSS = 1
 BORDER = FALSE
 TITLEATTRS = (family = 'arial' size = 10pt weight =
BOLD)
 VALUEATTRS = (family = 'arial' size = 8pt);
 endlayout;  EndGraph;  end; run; 

ods listing; 
style = MyROCoverStyle 
image_dpi = 1000
gpath = "/folders/myshortcuts/sf_myfolders/PhD/"; 

ods graphics on/ antialias=off reset 
 imagefmt= jpg
 imagename = "MyROCoverlay"
 border = off
 height = 6.5in 
 width = 6.5in 
 SCALE = on; 
 
proc sgrender data = subset template = Graphics.ROCOverlay;  run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 13:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470304#M16203</guid>
      <dc:creator>sharpmelk</dc:creator>
      <dc:date>2018-06-14T13:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Editing Template Output Problem Step</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470350#M16211</link>
      <description>&lt;P&gt;One thing that jumps out at me is that the ";" after "listing" is incorrect. The options after listing are part of the statement. DId you get a syntax error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing; 
style = MyROCoverStyle 
image_dpi = 1000
gpath = "/folders/myshortcuts/sf_myfolders/PhD/"; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 15:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470350#M16211</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-06-14T15:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Editing Template Output Problem Step</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470358#M16213</link>
      <description>&lt;P&gt;Sorry, not sure how that ; got in there. There's no ; after listing in my code. I don't get any errors except for the final&amp;nbsp;seriesplot "step" error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 15:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470358#M16213</guid>
      <dc:creator>sharpmelk</dc:creator>
      <dc:date>2018-06-14T15:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Editing Template Output Problem Step</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470372#M16216</link>
      <description>&lt;P&gt;Without seeing the data, it appears to me that your "subset" data does not contain all of the variables needed by the template. I would suggest doing a PROC CONTENTS on that data set and crosschecking the variable list against your template.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 16:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470372#M16216</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-06-14T16:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Editing Template Output Problem Step</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470375#M16217</link>
      <description>&lt;P&gt;The subset dataset has the outcome STROBE_act_none variable and the 4 predictor variables JIF16, JIF5, SNIP, and SJR although there are some missing values so 50 observations are dropped (because of the nofit option).&lt;EM&gt; Is there somewhere in the template text where I am supposed to replace text with these variable names?&lt;/EM&gt; It generates the output dataset with the calculated sensitivity/1- specificity required for the ROC curve. The code below runs by itself, no problem. It's just the formatting stuff that's the issue.&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;ods graphics on; &lt;BR /&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;logistic&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;subset plots&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;roc&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;id&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;prob&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;model&lt;/SPAN&gt; STROBE_act_none&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;event&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'0'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; JIF16 JIF5 SNIP SJR &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;nofit&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; 
roc &lt;SPAN class="token string"&gt;'2016 Journal Impact Factor'&lt;/SPAN&gt; JIF16&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
roc &lt;SPAN class="token string"&gt;'5 Year Journal Impact Factor'&lt;/SPAN&gt; JIF5&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
roc &lt;SPAN class="token string"&gt;'Source Normalized Impact per Paper'&lt;/SPAN&gt; SNIP&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
roc &lt;SPAN class="token string"&gt;'SCImage Journal Rank'&lt;/SPAN&gt; SJR&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
roccontrast reference&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'2016 Journal Impact Factor'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; estimate e&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;graphics&lt;/SPAN&gt; off&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 16:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470375#M16217</guid>
      <dc:creator>sharpmelk</dc:creator>
      <dc:date>2018-06-14T16:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Editing Template Output Problem Step</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470377#M16218</link>
      <description>&lt;P&gt;I think your intent was to use either the ROCOverlayData or the myROCData data sets on the PROC SGRENDER call instead of "subset". The variables in the "subset" data set do not match the ones in the template. The ODS OUTPUT statement below captures the data used for the ROCOverlay and ROC output objects from PROC LOGISTIC. My guess is that you want to render those results in a graph template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; output
ROCOverlay&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;ROCOverlaydata ROC &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; myROCdata&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 16:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470377#M16218</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-06-14T16:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Editing Template Output Problem Step</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470378#M16219</link>
      <description>&lt;P&gt;I'm working off the documentation in the main thread and I really don't understand what I should be changing. Sorry. I need to use the subset dataset only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="  language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; output
ROCOverlay&lt;SPAN class="token operator"&gt;=subset??&lt;/SPAN&gt; ROC &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; subset&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 16:51:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470378#M16219</guid>
      <dc:creator>sharpmelk</dc:creator>
      <dc:date>2018-06-14T16:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: ROC Curve ODS Editing Template Output Problem Step</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470381#M16220</link>
      <description>&lt;P&gt;Change the names of the output datasets to what you had before, then run PROC CONTENTS on them to see which one has the variables you need, Use that data set on the PROC SGRENDER call. You probably shouldn't use "subset" on PROC SGRENDER because that was your input dataset that you had PROC LOGISTIC analyze. I think you're insterested in the plot data from PROC LOGISTIC, which the ODS OUTPUT statement is giving you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 17:10:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ROC-Curve-ODS-Editing-Template-Output-Problem-Step/m-p/470381#M16220</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-06-14T17:10:42Z</dc:date>
    </item>
  </channel>
</rss>

