<?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: MI analyze for logistic regression with stepwise selection in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/588891#M168359</link>
    <description>&lt;P&gt;I don't think Stepwise logistic regression will work with repeated imputations from PROC MI. But there are many other reasons to avoid using Stepwise anyway, just go to your favorite internet search engine and type in "problems with stepwise regression".&lt;/P&gt;</description>
    <pubDate>Sun, 15 Sep 2019 21:56:36 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-09-15T21:56:36Z</dc:date>
    <item>
      <title>MI analyze for logistic regression with stepwise selection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/588871#M168356</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have run proc MI with 10 imputations, now I want to combine coefficients and odds ratios to make inferences using MI analyze. The problem I seem to run into is that parameters are not available for the non-selected variables in my var statement (I used the same var statement for imputation, proc logistic and mi analyze). How do I use mi analyze on logistic regression using stepwise selection to choose variables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc logistic data=outfiles.miout; /*logistic regression*/
	class AGE_70plus(ref="1") GENDER_male(ref="1") BMI_status(ref="2") ASACLASS_above3(ref="1") FNSTATUS_NotIndependent(ref="1") PMHxSMOKING(ref="1") PMHxALCOHOL(ref="1") PMHxCAD(ref="1") PMHxCHF(ref="1") PMHxDIABETES(ref="1") PMHxHTN(ref="1") PMHxSTEROIDS(ref="1") PMHxCOPD(ref="1") PMHxDYSPNEA(ref="1") PMHxTIACVA(ref="1") PMHxNEUROIMP(ref="1") PMHxBLEEDINGDISORDER(ref="1") PMHxRENALFAIL PMHxPVD(ref="1") PMHxCANCER(ref="1");
	model COMPLICATIONS (descending)= AGE_40plus AGE_50plus AGE_60plus AGE_70plus AGE_80plus GENDER_male BMI_status ASACLASS_above3 FNSTATUS_NotIndependent PMHxSMOKING PMHxALCOHOL PMHxCAD PMHxCHF PMHxDIABETES PMHxHTN PMHxSTEROIDS PMHxCOPD PMHxDYSPNEA PMHxTIACVA PMHxNEUROIMP PMHxBLEEDINGDISORDER PMHxRENALFAIL PMHxPVD PMHxCANCER / selection=stepwise slentry=0.10 slstay=0.05 details lackfit;
	by _imputation_;
	ods output ParameterEstimates=outfiles.lgsparms OddsRatios=outfiles.lgsodds;
run;


proc mianalyze parms(classvar=classval)=outfiles.lgsparms; /*pooling coefficients*/
	class AGE_70plus GENDER_male BMI_status ASACLASS_above3 FNSTATUS_NotIndependent PMHxSMOKING PMHxALCOHOL PMHxCAD PMHxCHF PMHxDIABETES PMHxHTN PMHxSTEROIDS PMHxCOPD PMHxDYSPNEA PMHxTIACVA PMHxNEUROIMP PMHxBLEEDINGDISORDER PMHxRENALFAIL PMHxPVD PMHxCANCER;
	modeleffects AGE_70plus GENDER_male BMI_status ASACLASS_above3 FNSTATUS_NotIndependent PMHxSMOKING PMHxALCOHOL PMHxCAD PMHxCHF PMHxDIABETES PMHxHTN PMHxSTEROIDS PMHxCOPD PMHxDYSPNEA PMHxTIACVA PMHxNEUROIMP PMHxBLEEDINGDISORDER PMHxRENALFAIL PMHxPVD PMHxCANCER;
	ods output parameterestimates=outfiles.mianalyze_parms CovB=outfiles.mianalyze_covb;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 20:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/588871#M168356</guid>
      <dc:creator>michellemabelle</dc:creator>
      <dc:date>2019-09-15T20:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: MI analyze for logistic regression with stepwise selection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/588891#M168359</link>
      <description>&lt;P&gt;I don't think Stepwise logistic regression will work with repeated imputations from PROC MI. But there are many other reasons to avoid using Stepwise anyway, just go to your favorite internet search engine and type in "problems with stepwise regression".&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 21:56:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/588891#M168359</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-15T21:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: MI analyze for logistic regression with stepwise selection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/589054#M168415</link>
      <description>&lt;P&gt;Yes, I understand the pitfalls of stepwise... but my supervisor seems to like it. What if I used LASSO or adaptive LASSO for variable selection instead? Would that be compatible with multiple imputation? Thanks for your advice!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 14:14:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/589054#M168415</guid>
      <dc:creator>michellemabelle</dc:creator>
      <dc:date>2019-09-16T14:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: MI analyze for logistic regression with stepwise selection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/589055#M168416</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/282561"&gt;@michellemabelle&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes, I understand the pitfalls of stepwise... but my supervisor seems to like it. What if I used LASSO or adaptive LASSO for variable selection instead? Would that be compatible with multiple imputation? Thanks for your advice!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't see how the lasso avoids the problems you have encountered with multiple imputation.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 14:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/589055#M168416</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-16T14:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: MI analyze for logistic regression with stepwise selection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/589060#M168419</link>
      <description>&lt;P&gt;I see. In general, is it not possible to perform variable selection with multiple imputation? Or if its doable, how?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 14:31:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/589060#M168419</guid>
      <dc:creator>michellemabelle</dc:creator>
      <dc:date>2019-09-16T14:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: MI analyze for logistic regression with stepwise selection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/589063#M168421</link>
      <description>&lt;P&gt;Variable selection is possible, it is the combining stepwise with multiple imputation that doesn't seem possible, as you have discovered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I sometimes get into a rant about why you shouldn't do stepwise, instead you should do Partial Least Squares; and this is another benefit of Partial Least Squares, that this multiple imputation problem goes away ... but SAS doesn't provide a logistic Partial Least Squares, it only provides Partial Least Squares for continuous Y variables. This logistic PLS issue comes up several times a month here in the SAS communities, but I don't know if SAS will ever address this deficiency.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 14:43:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/589063#M168421</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-16T14:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: MI analyze for logistic regression with stepwise selection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/589074#M168431</link>
      <description>&lt;P&gt;Ok, I'll avoid stepwise then. Then my issue becomes doing variable selection with multiple imputation. Looking elsewhere on the boards, I've found someone suggest to perform variable selection on a single imputation, and then run that model on all the other imputations using mi analyze to pool coeffients and odds ratios, but I am confused as to how to implement this, or if this is statistically sound. Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 14:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/589074#M168431</guid>
      <dc:creator>michellemabelle</dc:creator>
      <dc:date>2019-09-16T14:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: MI analyze for logistic regression with stepwise selection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/589091#M168432</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/282561"&gt;@michellemabelle&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Ok, I'll avoid stepwise then. Then my issue becomes doing variable selection with multiple imputation. Looking elsewhere on the boards, I've found someone suggest to perform variable selection on a single imputation, and then run that model on all the other imputations using mi analyze to pool coeffients and odds ratios, but I am confused as to how to implement this, or if this is statistically sound. Thank you very much!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think doing variable selection on a single imputation and then using that model thereafter on the other imputations is questionable. That's my opinion. I note that I don't have any experience with that method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But whatever you come up with, I'm probably not going to like if it involves variable selection; so you might as well come up with something that YOU like and YOU can feel good about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, how are you doing the imputation in PROC MI? If you are using the EM method, that would make everything feel better to me, as then the different imputations ought to produce somewhat similar models, although the horrors of stepwise could still cause trouble. You see, the EM method ought to (across multiple imputations) result in data that has roughly the same covariance matrix, and thus ought to produce roughly the same Logistic regression models, but no guarantees either. If you're not using EM here, then I don't like it.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 15:35:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MI-analyze-for-logistic-regression-with-stepwise-selection/m-p/589091#M168432</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-16T15:35:21Z</dc:date>
    </item>
  </channel>
</rss>

