title: Only output the ROC curve in SAS
body: <p>I am looking to create a pdf with 4 nice graphs for different analysis. My question is, how do I output only the ROC curve for my logistic regression?</p>
  
  <p>I use the following code</p>
  
  <pre><code>            TITLE2 JUSTIFY=CENTER "Rank ordering characteristic curve (ROC)"; 
              ODS GRAPHICS ON;
                  PROC LOGISTIC 
                      DATA = input
                      plots(only)=(roc(id=obs))
              ;
              MODEL y
                  (Event = '1')=  x   
                      /
                  SELECTION=NONE
                  LINK=LOGIT;
              RUN;
              QUIT;
              ODS GRAPHICS OFF;
  </code></pre>
  
  <p>and a dummy dataset can be imagined using this</p>
  
  <pre><code>DATA HAVE;
      DO I = 1 TO 100;
          Y = RAND('integer',0,1);
          x = ranuni(i);
          output;
      end;
  run;
  </code></pre>
  
  <p>Thanks</p>
  
  <p>EDIT: just to be explicit, I'm looking to output just a plot of the ROC curve and nothing else, i.e. the tables containing the somers' D etc. </p>