<?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: PROC LOGISTIC variable selection supress linear combination in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410339#M21443</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/150508"&gt;@stratozyck&lt;/a&gt; wrote:&lt;BR /&gt;No there would be no problem. Lets say X1 is 2*X2&lt;BR /&gt;&lt;BR /&gt;Obviouslt including both X1 and X2 is an issue but the selection procedure only considers one and doesnt consider the other in any way.&lt;BR /&gt;&lt;BR /&gt;Its more complex than that. It dops a variable from consideration because its a linear combo of like 10 other variables even though we told it to only consider 3 per candidate model.&lt;BR /&gt;&lt;BR /&gt;Again, we are NOT trying to put variables that are linear combinations into one model, but want it to consider variables it says are linear combinations in seperate candiate models.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It'll run fine within an individual process, but I'm not seeing how you're controlling for 3 per candidate model. I'm assuming that's some sort of macro but the code shown is just the logistic regression. You could a KEEP statement to each iteration to ensure it's just the variables you want considered.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2017 16:42:12 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-11-03T16:42:12Z</dc:date>
    <item>
      <title>PROC LOGISTIC variable selection supress linear combination</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410268#M21436</link>
      <description>&lt;P&gt;Hi, we are trying to do variable selection and we keep getting "&lt;!-- StartFragment  --&gt;&lt;FONT face="Arial"&gt;Note:&amp;nbsp;The&amp;nbsp;following&amp;nbsp;variables&amp;nbsp;are&amp;nbsp;not&amp;nbsp;used&amp;nbsp;in&amp;nbsp;the&amp;nbsp;SCORE&amp;nbsp;selection&amp;nbsp;since&amp;nbsp;they&amp;nbsp;are&amp;nbsp;a&amp;nbsp;linear&amp;nbsp;combination&amp;nbsp;of&amp;nbsp;other&amp;nbsp;variables&amp;nbsp;as&amp;nbsp;shown."&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;Is there a way to make all variables used? We need to have all variables used in the selection option of proc logistic even if there are linear combinations.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 14:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410268#M21436</guid>
      <dc:creator>stratozyck</dc:creator>
      <dc:date>2017-11-03T14:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC variable selection supress linear combination</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410275#M21437</link>
      <description>&lt;P&gt;Please post your full code and log.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 15:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410275#M21437</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-03T15:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC variable selection supress linear combination</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410287#M21438</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/150508"&gt;@stratozyck&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi, we are trying to do variable selection and we keep getting "&lt;!-- StartFragment  --&gt;&lt;FONT face="Arial"&gt;Note:&amp;nbsp;The&amp;nbsp;following&amp;nbsp;variables&amp;nbsp;are&amp;nbsp;not&amp;nbsp;used&amp;nbsp;in&amp;nbsp;the&amp;nbsp;SCORE&amp;nbsp;selection&amp;nbsp;since&amp;nbsp;they&amp;nbsp;are&amp;nbsp;a&amp;nbsp;linear&amp;nbsp;combination&amp;nbsp;of&amp;nbsp;other&amp;nbsp;variables&amp;nbsp;as&amp;nbsp;shown."&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;Is there a way to make all variables used? We need to have all variables used in the selection option of proc logistic even if there are linear combinations.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, that's the problem when some variables are linear combinations of other variables. They cannot all be used by PROC LOGISTIC. And it doesn't make sense to use all of them anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 15:21:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410287#M21438</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-11-03T15:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC variable selection supress linear combination</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410298#M21439</link>
      <description>&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;ODS OUTPUT Bestsubsets = gridwork.qry_subsets&amp;amp;seg;&lt;BR /&gt;proc logistic data=&amp;amp;indata;&lt;BR /&gt;model outcome(EVENT='1')= &amp;amp;list&lt;BR /&gt;/selection=score best= &amp;amp;modnum start=&amp;amp;minnum stop=&amp;amp;varnum;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we want it to do is consider all variables in sets of 3-4 or so. Lets say we have x1-x100. We want it to consider all of them in sets of 3-4.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I get what you are saying about the variables not being used in the same model, but if x2 is a linear combination of x5 and x6, we still want x2 considered even if x5 and x6 are not in the model.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 15:48:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410298#M21439</guid>
      <dc:creator>stratozyck</dc:creator>
      <dc:date>2017-11-03T15:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC variable selection supress linear combination</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410328#M21441</link>
      <description>&lt;P&gt;You run into problems manipulating the matrices when it's an exact linear combination, it's not a matter of 'allowing' something to occur.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 16:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410328#M21441</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-03T16:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC variable selection supress linear combination</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410334#M21442</link>
      <description>No there would be no problem. Lets say X1 is 2*X2&lt;BR /&gt;&lt;BR /&gt;Obviouslt including both X1 and X2 is an issue but the selection procedure only considers one and doesnt consider the other in any way.&lt;BR /&gt;&lt;BR /&gt;Its more complex than that. It dops a variable from consideration because its a linear combo of like 10 other variables even though we told it to only consider 3 per candidate model.&lt;BR /&gt;&lt;BR /&gt;Again, we are NOT trying to put variables that are linear combinations into one model, but want it to consider variables it says are linear combinations in seperate candiate models.&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Nov 2017 16:33:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410334#M21442</guid>
      <dc:creator>stratozyck</dc:creator>
      <dc:date>2017-11-03T16:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC variable selection supress linear combination</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410339#M21443</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/150508"&gt;@stratozyck&lt;/a&gt; wrote:&lt;BR /&gt;No there would be no problem. Lets say X1 is 2*X2&lt;BR /&gt;&lt;BR /&gt;Obviouslt including both X1 and X2 is an issue but the selection procedure only considers one and doesnt consider the other in any way.&lt;BR /&gt;&lt;BR /&gt;Its more complex than that. It dops a variable from consideration because its a linear combo of like 10 other variables even though we told it to only consider 3 per candidate model.&lt;BR /&gt;&lt;BR /&gt;Again, we are NOT trying to put variables that are linear combinations into one model, but want it to consider variables it says are linear combinations in seperate candiate models.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It'll run fine within an individual process, but I'm not seeing how you're controlling for 3 per candidate model. I'm assuming that's some sort of macro but the code shown is just the logistic regression. You could a KEEP statement to each iteration to ensure it's just the variables you want considered.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 16:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410339#M21443</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-03T16:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC variable selection supress linear combination</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410522#M21448</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/150508"&gt;@stratozyck&lt;/a&gt; wrote:&lt;BR /&gt;No there would be no problem. Lets say X1 is 2*X2&lt;BR /&gt;&lt;BR /&gt;Obviouslt including both X1 and X2 is an issue but the selection procedure only considers one and doesnt consider the other in any way.&lt;BR /&gt;&lt;BR /&gt;Its more complex than that. It dops a variable from consideration because its a linear combo of like 10 other variables even though we told it to only consider 3 per candidate model.&lt;BR /&gt;&lt;BR /&gt;Again, we are NOT trying to put variables that are linear combinations into one model, but want it to consider variables it says are linear combinations in seperate candiate models.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The restriction isn't because of SAS, it comes from the fact that the math doesn't allow it. Any matrix that has linear combinations of the X-variables cannot be inverted and so cannot be used in logistic (or ordinary least squares) regression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What we want it to do is consider all variables in sets of 3-4 or so. Lets say we have x1-x100. We want it to consider all of them in sets of 3-4.&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I have no idea whether this is a good idea or not, but in my mind, I wouldn't do this when you have 100 x-variables. The collinearity between this 100 x-variables is going to cause problems with whatever selection method is used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps, given the explanation above, that you have 100 correlated input variables, some of them a linear combination of other variables, you need a change of mindset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need a method that is better at handling correlated input variables than either logistic regression or ordinary least squares regression. You also need a method that can handle situations where the input matrix has linear combinations of your x-variables. That method is Partial Least Squares regression, but it requires a change of mindset, where now you KEEP all of your x-variables in the model, many of them will have weightings (loadings is the technical term) that are very close to zero. Partial Least Squares is much better than ordinary least squares regression or logistic regression at modelling with lots of input variables; and it also can work when you have linear combinations of input variables.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2017 10:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410522#M21448</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-11-04T10:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC variable selection supress linear combination</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410528#M21449</link>
      <description>&lt;P&gt;Check&amp;nbsp; include= option of model statement.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2017 13:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410528#M21449</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-11-04T13:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC variable selection supress linear combination</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410563#M21450</link>
      <description>&lt;P&gt;Just because you can use the INCLUDE option doesn't mean you should use the INCLUDE option.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2017 17:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-variable-selection-supress-linear-combination/m-p/410563#M21450</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-11-04T17:10:44Z</dc:date>
    </item>
  </channel>
</rss>

