<?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 Multiple roc curve in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-roc-curve/m-p/597493#M29092</link>
    <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New to SAS and looking for some guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following variables: volumes, my outcome and my predictor in a data file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;Volume group&amp;nbsp; &amp;nbsp; &amp;nbsp;Volume&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Outcome&amp;nbsp; &amp;nbsp; &amp;nbsp;Predictor&lt;/P&gt;&lt;P&gt;&amp;lt;500&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;lt;500&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;255&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;500-&amp;lt;1000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 789&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a ROC curve for my outcome and predictor, but I want to have multiple curves by my volume groups (e.g. &amp;lt;500, 500-&amp;lt;1000, &amp;gt;=1000). Wondering if this is this possible? Here is my code so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc logistic data=test plots=effects plots=roc;&lt;/P&gt;&lt;P&gt;model outcome=predictor;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 20:34:02 GMT</pubDate>
    <dc:creator>kthartma</dc:creator>
    <dc:date>2019-10-17T20:34:02Z</dc:date>
    <item>
      <title>Multiple roc curve</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-roc-curve/m-p/597493#M29092</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New to SAS and looking for some guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following variables: volumes, my outcome and my predictor in a data file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;Volume group&amp;nbsp; &amp;nbsp; &amp;nbsp;Volume&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Outcome&amp;nbsp; &amp;nbsp; &amp;nbsp;Predictor&lt;/P&gt;&lt;P&gt;&amp;lt;500&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;lt;500&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;255&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;500-&amp;lt;1000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 789&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a ROC curve for my outcome and predictor, but I want to have multiple curves by my volume groups (e.g. &amp;lt;500, 500-&amp;lt;1000, &amp;gt;=1000). Wondering if this is this possible? Here is my code so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc logistic data=test plots=effects plots=roc;&lt;/P&gt;&lt;P&gt;model outcome=predictor;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 20:34:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-roc-curve/m-p/597493#M29092</guid>
      <dc:creator>kthartma</dc:creator>
      <dc:date>2019-10-17T20:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple roc curve</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-roc-curve/m-p/597582#M29093</link>
      <description>&lt;P&gt;you could create a format:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ; 
  value age 10-14='A' 15-20='B';
run;
proc sort data=SASHELP.CLASS out=CLASS; 
 by AGE;
run;

ods graphics on;
proc logistic data=CLASS plots=effect plots=roc;
  by AGE;
  format AGE age.;
  model HEIGHT=WEIGHT;
run;
ods graphics off;  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 00:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-roc-curve/m-p/597582#M29093</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-18T00:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple roc curve</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-roc-curve/m-p/597702#M29094</link>
      <description>&lt;P&gt;As ChrisNZ shows, you can sort the data by your 'Volume group' variable and use a BY statement if you want to create separate ROC curves,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do not state how you obtained the predicted values, but because your volume appears to be a covariate, you might instead choose to incorporate that information into the model. Then the Predictor variable would use the volume as part of the predictive model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lastly, since you already have the Predictor variable and you just want the ROC curve, you should add the NOFIT option to the MODEL statement and use an ROC statement to get the plot:&lt;/P&gt;
&lt;P&gt;ROC 'My Curve' pred=Predictor;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 12:45:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-roc-curve/m-p/597702#M29094</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-10-18T12:45:16Z</dc:date>
    </item>
  </channel>
</rss>

