<?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 to retain variables in backward elimination in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-variables-in-backward-elimination/m-p/845372#M334206</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/337907"&gt;@angouldi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the &lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_logistic_syntax22.htm#statug.logistic.logisticinclude" target="_blank" rel="noopener"&gt;INCLUDE= option&lt;/A&gt; of the MODEL statement: Insert &lt;FONT face="courier new,courier"&gt;include=1&lt;/FONT&gt; after the slash (e.g., between your existing SLSTAY= and CTABLE options) and SAS will use the first explanatory effect listed in the MODEL statement, i.e., quartile_SDI, in every model during&amp;nbsp;&lt;SPAN&gt;the variable selection process&lt;/SPAN&gt;.&lt;/P&gt;</description>
    <pubDate>Sun, 20 Nov 2022 22:58:58 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2022-11-20T22:58:58Z</dc:date>
    <item>
      <title>How to retain variables in backward elimination</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-variables-in-backward-elimination/m-p/845355#M334197</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to complete a backward elimination analysis to select covariates for a logistic regression model. I would like to retain my key exposure variable (quartile_SDI) in the model, and only consider removing potential confounding variables, but I am struggling to figure out the code. Below is the code that I am using:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc logistic data=pas.ranked_quart_3;&lt;BR /&gt;class RBC_4 (ref='0') ante_dx (ref='1') anemic (ref='0') anyDM (ref='0')/ param=ref;&lt;BR /&gt;model RBC_4 = quartile_SDI age BMI_delivery prior_CS ante_dx anyDM anemic&lt;BR /&gt;/ selection=backward fast slstay=0.1&lt;BR /&gt;ctable pprob=(0 to 1 by 0.05);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance would be appreciated. Thank you for your help!&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2022 20:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-variables-in-backward-elimination/m-p/845355#M334197</guid>
      <dc:creator>angouldi</dc:creator>
      <dc:date>2022-11-20T20:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain variables in backward elimination</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-variables-in-backward-elimination/m-p/845372#M334206</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/337907"&gt;@angouldi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the &lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_logistic_syntax22.htm#statug.logistic.logisticinclude" target="_blank" rel="noopener"&gt;INCLUDE= option&lt;/A&gt; of the MODEL statement: Insert &lt;FONT face="courier new,courier"&gt;include=1&lt;/FONT&gt; after the slash (e.g., between your existing SLSTAY= and CTABLE options) and SAS will use the first explanatory effect listed in the MODEL statement, i.e., quartile_SDI, in every model during&amp;nbsp;&lt;SPAN&gt;the variable selection process&lt;/SPAN&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2022 22:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-variables-in-backward-elimination/m-p/845372#M334206</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-11-20T22:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain variables in backward elimination</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retain-variables-in-backward-elimination/m-p/845392#M334216</link>
      <description>&lt;P&gt;Thank you! This is exactly what I was looking for.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 04:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retain-variables-in-backward-elimination/m-p/845392#M334216</guid>
      <dc:creator>angouldi</dc:creator>
      <dc:date>2022-11-21T04:40:22Z</dc:date>
    </item>
  </channel>
</rss>

