<?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: spline variables in hpgenselect - group lasso in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480136#M71529</link>
    <description>&lt;P&gt;Nevermind, I forgot that you are using splines here.&lt;/P&gt;</description>
    <pubDate>Sat, 21 Jul 2018 11:15:46 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-07-21T11:15:46Z</dc:date>
    <item>
      <title>spline variables in hpgenselect - group lasso</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480093#M71523</link>
      <description>&lt;P&gt;I am running a proc hpgenselect logistic model using lasso selection. I understand hpgenselect already uses group lasso methods for class variables. However, I additionally have 2 variables (part of a spline - 1 represents continuous variable less than X and the other represents continuous variable greater than X) that I want to keep together. How can I do this as they are not part of the same class variable?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 22:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480093#M71523</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-07-20T22:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: spline variables in hpgenselect - group lasso</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480097#M71524</link>
      <description>&lt;P&gt;Turn them into a class variable is one way to keep them together.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Although it is certainly pointless to put two variables in the model where one is (continuous variable &amp;lt; X) and the other is (continuous variable &amp;gt; X). They are not telling you different things, they are telling you the same things.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 23:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480097#M71524</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-07-20T23:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: spline variables in hpgenselect - group lasso</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480098#M71525</link>
      <description>&lt;P&gt;Since the continuous predictor was nonlinear, I elected to split the variable into 2, so I can model the risk of Y when the variable is less than X and then separately when the variable is greater than or equal to X. I don't understand why this was pointless? This way we can interpret the data less than X and greater than X appropriately. How would you have done it ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 23:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480098#M71525</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-07-20T23:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: spline variables in hpgenselect - group lasso</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480136#M71529</link>
      <description>&lt;P&gt;Nevermind, I forgot that you are using splines here.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jul 2018 11:15:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480136#M71529</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-07-21T11:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: spline variables in hpgenselect - group lasso</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480544#M71546</link>
      <description>&lt;P&gt;Since HPGENSELECT does not support the EFFECT statement, how did you generate the spline effects? Are they from a design matrix? If so, it seems like you can use the INCLUDE= option on the&amp;nbsp;MODEL statement to&amp;nbsp;force them both into the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I am misunderstanding, please post your code so we can see what you are doing.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 17:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480544#M71546</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-07-23T17:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: spline variables in hpgenselect - group lasso</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480547#M71547</link>
      <description>I generated the splines when I was checking the bivariate associations between my predictors and dependent variable. I just basically split the X variable into 2 variables and am calling them splines, sorry for the confusion. I cannot use the include option in the model statement because I dont want to force them in the model, I merely want to group them together so either both or neither end up in the final model selected.</description>
      <pubDate>Mon, 23 Jul 2018 17:27:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480547#M71547</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-07-23T17:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: spline variables in hpgenselect - group lasso</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480558#M71549</link>
      <description>&lt;P&gt;Let's see if I understand this. You had an original variable that I'll call X. You create new variables that are equal to X above or below some cutoff value and zero otherwise, like this:&lt;/P&gt;
&lt;P&gt;Z1 = X*(X&amp;lt;0);&amp;nbsp; &amp;nbsp; &amp;nbsp;/* assuming X=0 is cutoff value */&lt;/P&gt;
&lt;P&gt;Z2 = X*(X&amp;gt;=0);&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your model includes Z1 and Z2. You want the final model to either include both Z1 and Z2 or include neither?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I close? If not, please post your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 17:51:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480558#M71549</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-07-23T17:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: spline variables in hpgenselect - group lasso</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480559#M71550</link>
      <description>Precisely!</description>
      <pubDate>Mon, 23 Jul 2018 17:52:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480559#M71550</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-07-23T17:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: spline variables in hpgenselect - group lasso</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480598#M71551</link>
      <description>&lt;P&gt;OK, great. The model&lt;/P&gt;
&lt;P&gt;model Y = Z1 Z2 x2-x10;&lt;/P&gt;
&lt;P&gt;is the same as the model&amp;nbsp;&lt;/P&gt;
&lt;P&gt;class C;&lt;BR /&gt;model Y = C*x1 x2-x10;&lt;/P&gt;
&lt;P&gt;where C = (X&amp;gt;0);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the&amp;nbsp;first model (your situation) the Z1 and&amp;nbsp;Z2 variables can enter/leave independently whereas in the second model the C*x1 term is either in or out. So all you need to do is define the binary class variable C instead of the two continuous variables Z1 and Z2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 19:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/spline-variables-in-hpgenselect-group-lasso/m-p/480598#M71551</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-07-23T19:17:57Z</dc:date>
    </item>
  </channel>
</rss>

