<?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: LASSO in Logistic regression in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/583941#M75745</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you say '&lt;SPAN&gt;&amp;nbsp;apply cutoff &amp;gt; 0 ' is something which I have not followed as to what needs to be done. Can anyone throw more light on this, like any sample code or any more information?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your help and time.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2019 15:04:28 GMT</pubDate>
    <dc:creator>akanujia44</dc:creator>
    <dc:date>2019-08-26T15:04:28Z</dc:date>
    <item>
      <title>LASSO in Logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143171#M38085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was just wondering if there is any way to use LASSO &amp;amp; ELASTIC NET in logistic regression model using SAS. &lt;/P&gt;&lt;P&gt;Any help or suggestions will be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lovedeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 14:11:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143171#M38085</guid>
      <dc:creator>lovedeep</dc:creator>
      <dc:date>2014-06-16T14:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: LASSO in Logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143172#M38086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look into PROC GLMSELECT.&amp;nbsp; You may need to transform your dependent variable onto the logit scale before fitting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 17:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143172#M38086</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-06-16T17:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: LASSO in Logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143173#M38087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve,&lt;/P&gt;&lt;P&gt;But can you please guide me for the best way to accomplish it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 19:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143173#M38087</guid>
      <dc:creator>lovedeep</dc:creator>
      <dc:date>2014-06-16T19:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: LASSO in Logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143174#M38088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get your data into the events/trials syntax, if it is not already.&amp;nbsp; Apply a logit transform to the dependent variable, and run GLMSELECT with the LASSO option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 19:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143174#M38088</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-06-16T19:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: LASSO in Logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143175#M38089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lasso variable selection &lt;STRONG&gt;is&lt;/STRONG&gt; available for logistic regression in the latest version of the HPGENSELECT procedure (SAS/STAT 13.1 included in Base SAS 9.4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Elastic net isn't supported quite yet. However if you're interested I can send you my Base SAS coding solution for lasso + elastic net for logistic and Poisson regression which I just presented at the 2015 SAS Global Forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 14:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143175#M38089</guid>
      <dc:creator>RobF</dc:creator>
      <dc:date>2015-04-30T14:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: LASSO in Logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143176#M38090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found it.&amp;nbsp; Thanks!&amp;nbsp; I will give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/resources/papers/proceedings15/3297-2015.pdf" title="http://support.sas.com/resources/papers/proceedings15/3297-2015.pdf"&gt;http://support.sas.com/resources/papers/proceedings15/3297-2015.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Google also found another suggestion for use of GLMSELECT.&amp;nbsp; Code dichotomous outcome as +-1, run GLMSELECT and apply cutoff &amp;gt; 0.&amp;nbsp; Will give that a try as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Haris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 16:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143176#M38090</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2015-05-06T16:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: LASSO in Logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143177#M38091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome, let me know if you have questions about the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code will generate &amp;amp; output logistic regression coefficient estimates for selected values of the alpha &amp;amp; lambda parameters, but I haven't yet written code that selects the optimal alpha &amp;amp; lambda values for the elastic net model. You could do this using 5 or 10-fold cross validation, or else randomly split your data into two chunks, training and validation. Fit the elastic net&amp;nbsp; models for varying alpha &amp;amp; lambda values with the training data, then score the validation dataset with the output model coefficients &amp;amp; compare predictive accuracy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried the GLMSELECT shortcut using +1/-1 but would be interested to see how it performs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 18:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143177#M38091</guid>
      <dc:creator>RobF</dc:creator>
      <dc:date>2015-05-06T18:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: LASSO in Logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143178#M38092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also need to &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;use LASSO in logistic regression model in SAS and my SAS version doesn't have &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;HPGENSELECT procedure&lt;/SPAN&gt;. Could you mind sending me the link of &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;your Base SAS coding solution for lasso for logistic and Poisson regression&amp;nbsp; presented at the 2015 SAS Global Forum? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much and I appreciate your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fiona&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 20:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/143178#M38092</guid>
      <dc:creator>FionaCao</dc:creator>
      <dc:date>2015-07-01T20:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: LASSO in Logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/583941#M75745</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you say '&lt;SPAN&gt;&amp;nbsp;apply cutoff &amp;gt; 0 ' is something which I have not followed as to what needs to be done. Can anyone throw more light on this, like any sample code or any more information?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your help and time.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 15:04:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/583941#M75745</guid>
      <dc:creator>akanujia44</dc:creator>
      <dc:date>2019-08-26T15:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: LASSO in Logistic regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/590361#M75977</link>
      <description>&lt;P&gt;&lt;BR /&gt;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did run a lasso logistic regression with SAS glmselect (Y=1 for event and Y=-1 for non event). My syntax is something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc glmselect data=&amp;lt;dataset&amp;gt; plots=all seed=123;
output out=preds pred=individual;
partition role=selected(train='1' test='0');
class Y AGE SEX;
model Y = AGE SEX AGE*SEX /selection=lasso(choose=cv stop=none) cvmethod=random(10);
run;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Everything works fine but I end-up with coefficients like that&lt;/P&gt;&lt;PRE&gt;SEXFemale*AGEYounger -0.9
SEXFemale*AGEOlder -0.7&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Should I subtract -0.7 from -0.9 to find the relative effect of Younger age in the interaction with Sex?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 12:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/LASSO-in-Logistic-regression/m-p/590361#M75977</guid>
      <dc:creator>paoloeusebi0</dc:creator>
      <dc:date>2019-09-20T12:31:00Z</dc:date>
    </item>
  </channel>
</rss>

