<?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: Ridge Regression and LASSO in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Ridge-Regression-and-LASSO/m-p/311058#M16437</link>
    <description>&lt;P&gt;I think I found the answer.&amp;nbsp; In the selection method options, L1=0 requires stop=L1.&amp;nbsp; When I changed stop=cv to stop=l1, the ridge regression gave a different model than the LASSO.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2016 20:02:46 GMT</pubDate>
    <dc:creator>mcs</dc:creator>
    <dc:date>2016-11-11T20:02:46Z</dc:date>
    <item>
      <title>Ridge Regression and LASSO</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ridge-Regression-and-LASSO/m-p/311037#M16436</link>
      <description>&lt;P&gt;I'd like to use proc glmselect to compare&amp;nbsp;ridge regresssion and LASSO on the same data.&amp;nbsp;&amp;nbsp; The documentation seems to say that selection=elasticnet with L1=0 is euivalent to ridge regression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glmselect data=train plots=all;
class private;
model apps = private accept--grad_rate / selection=elasticnet(choose=cv l1=0 stop=cv);
score data=test p out=ridge;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glmselect data=train plots=all;
class private;
model apps = private accept--grad_rate / selection=lasso(choose=cv stop=cv);
score data=test p out=lasso;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data is the College.csv file from &lt;A href="http://www-bcf.usc.edu/~gareth/ISL/data.html" target="_blank"&gt;http://www-bcf.usc.edu/~gareth/ISL/data.html&lt;/A&gt;, split into training and test sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The two models selected are exactly the same.&amp;nbsp; (I also get the same model if I use elasticnet with L2=0.)&amp;nbsp; Why is that?&amp;nbsp; I expected ridge regression and LASSO to produce slightly different models since they use different constraints.&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 18:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ridge-Regression-and-LASSO/m-p/311037#M16436</guid>
      <dc:creator>mcs</dc:creator>
      <dc:date>2016-11-11T18:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ridge Regression and LASSO</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Ridge-Regression-and-LASSO/m-p/311058#M16437</link>
      <description>&lt;P&gt;I think I found the answer.&amp;nbsp; In the selection method options, L1=0 requires stop=L1.&amp;nbsp; When I changed stop=cv to stop=l1, the ridge regression gave a different model than the LASSO.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 20:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Ridge-Regression-and-LASSO/m-p/311058#M16437</guid>
      <dc:creator>mcs</dc:creator>
      <dc:date>2016-11-11T20:02:46Z</dc:date>
    </item>
  </channel>
</rss>

