<?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: How do I get ROC information from just the final step in PROC LOGISTIC with Stepwise Selection? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-get-ROC-information-from-just-the-final-step-in-PROC/m-p/712213#M80023</link>
    <description>If you're just interested in the final results, why not just use the final model and remove the selection option entirely?</description>
    <pubDate>Mon, 18 Jan 2021 19:37:44 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-01-18T19:37:44Z</dc:date>
    <item>
      <title>How do I get ROC information from just the final step in PROC LOGISTIC with Stepwise Selection?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-get-ROC-information-from-just-the-final-step-in-PROC/m-p/712207#M80022</link>
      <description>&lt;P&gt;In PROC LOGISTIC (v.9.4) with SELECTION=STEPWISE, if you ask to output the ROC curve data (OUTROC), you get results for every step.&amp;nbsp; My question: Is there a way to restrict the output to just the final step?&amp;nbsp; Failing that, is there a way that I can use ODS to output the total number of steps so that I can subset the OUTROC dataset?&amp;nbsp; [I suppose I could use proc freq to find the maximum number of steps and then try to pass that maximum number to a DATA step.&amp;nbsp; But that's very kludgy.]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current code:&lt;/P&gt;&lt;P&gt;proc logistic data=hem;&lt;BR /&gt;model outcome(ref='Alive') = IL_1ra IL_6 IL_8 IL_10 Eotaxin IP_10 MCP_1 / outroc=hem selection=stepwise;&lt;BR /&gt;output out=outhem predicted=predhem xbeta=xbhem;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dennis Hanseman&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 19:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-get-ROC-information-from-just-the-final-step-in-PROC/m-p/712207#M80022</guid>
      <dc:creator>oakHILLS68</dc:creator>
      <dc:date>2021-01-18T19:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get ROC information from just the final step in PROC LOGISTIC with Stepwise Selection?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-get-ROC-information-from-just-the-final-step-in-PROC/m-p/712213#M80023</link>
      <description>If you're just interested in the final results, why not just use the final model and remove the selection option entirely?</description>
      <pubDate>Mon, 18 Jan 2021 19:37:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-get-ROC-information-from-just-the-final-step-in-PROC/m-p/712213#M80023</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-18T19:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get ROC information from just the final step in PROC LOGISTIC with Stepwise Selection?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-get-ROC-information-from-just-the-final-step-in-PROC/m-p/712226#M80024</link>
      <description>That's a good idea, but my code is in a macro. I need to run it multiple times with different macro parameters.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 18 Jan 2021 20:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-get-ROC-information-from-just-the-final-step-in-PROC/m-p/712226#M80024</guid>
      <dc:creator>oakHILLS68</dc:creator>
      <dc:date>2021-01-18T20:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get ROC information from just the final step in PROC LOGISTIC with Stepwise Selection?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-get-ROC-information-from-just-the-final-step-in-PROC/m-p/712228#M80025</link>
      <description>So pipe the selected variables from the previous logistic regression to the next step using macro variables.</description>
      <pubDate>Mon, 18 Jan 2021 20:38:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-get-ROC-information-from-just-the-final-step-in-PROC/m-p/712228#M80025</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-18T20:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get ROC information from just the final step in PROC LOGISTIC with Stepwise Selection?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-get-ROC-information-from-just-the-final-step-in-PROC/m-p/712230#M80026</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/156481"&gt;@oakHILLS68&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;(...) is there a way that I can use ODS to output the total number of steps so that I can subset the OUTROC dataset?&amp;nbsp; [I suppose I could use proc freq to find the maximum number of steps and then try to pass that maximum number to a DATA step.&amp;nbsp; But that's very kludgy.]&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/156481"&gt;@oakHILLS68&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do the selection in one DATA step;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want(drop=_s);
if _n_=1 then set hem(rename=(_step_=_s)) point=n;
set hem nobs=n;
if _step_=_s;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jan 2021 20:48:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-get-ROC-information-from-just-the-final-step-in-PROC/m-p/712230#M80026</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-01-18T20:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get ROC information from just the final step in PROC LOGISTIC with Stepwise Selection?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-get-ROC-information-from-just-the-final-step-in-PROC/m-p/712231#M80027</link>
      <description>Yes! Thanks very much.</description>
      <pubDate>Mon, 18 Jan 2021 20:53:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-get-ROC-information-from-just-the-final-step-in-PROC/m-p/712231#M80027</guid>
      <dc:creator>oakHILLS68</dc:creator>
      <dc:date>2021-01-18T20:53:37Z</dc:date>
    </item>
  </channel>
</rss>

