<?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 How to modify LAR to produce LASSO results with proc glmselect in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-modify-LAR-to-produce-LASSO-results-with-proc-glmselect/m-p/425610#M22378</link>
    <description>&lt;P&gt;I'm taking a Coursera course that gave example code to produce a lasso regression. In their code, they used lars algorithm to get a lasso multiple regression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* lasso multiple regression with lars algorithm k=10 fold validation;
proc glmselect data=traintest plots=all seed=123;
partition ROLE=selected(train='1' test='0');
model schconn1 = male hispanic white black namerican asian alcevr1 marever1 cocever1 
inhever1 cigavail passist expel1 age alcprobs1 deviant1 viol1 dep1 esteem1 parpres paractv 
famconct gpa1/selection=lar(choose=cv stop=none) cvmethod=random(10);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the &lt;A href="https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_glmselect_a0000000242.htm" target="_self"&gt;lar documentation page&lt;/A&gt;, it does say "&lt;SPAN&gt;Not only does this algorithm provide a selection method in its own right, but with one additional modification it can be used to efficiently produce LASSO solutions." However, nowhere can I find an explanation of what the "additional modification" is that is making these results LASSO results rather than LAR results. When I run the code on the same data with "selection=lasso" instead, I get the same best fit model, but the plots and tables show variables (after the best fit model has been chosen in an earlier iteration) being removed from the model as their coefficient is shrunk to 0 (as I would expect with a LASSO regression), which is not the case of the output using the above example code. Can anyone shed some light on how I am using LARS to get LASSO results? Thanks!&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jan 2018 16:23:53 GMT</pubDate>
    <dc:creator>Robin_B</dc:creator>
    <dc:date>2018-01-07T16:23:53Z</dc:date>
    <item>
      <title>How to modify LAR to produce LASSO results with proc glmselect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-modify-LAR-to-produce-LASSO-results-with-proc-glmselect/m-p/425610#M22378</link>
      <description>&lt;P&gt;I'm taking a Coursera course that gave example code to produce a lasso regression. In their code, they used lars algorithm to get a lasso multiple regression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* lasso multiple regression with lars algorithm k=10 fold validation;
proc glmselect data=traintest plots=all seed=123;
partition ROLE=selected(train='1' test='0');
model schconn1 = male hispanic white black namerican asian alcevr1 marever1 cocever1 
inhever1 cigavail passist expel1 age alcprobs1 deviant1 viol1 dep1 esteem1 parpres paractv 
famconct gpa1/selection=lar(choose=cv stop=none) cvmethod=random(10);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the &lt;A href="https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_glmselect_a0000000242.htm" target="_self"&gt;lar documentation page&lt;/A&gt;, it does say "&lt;SPAN&gt;Not only does this algorithm provide a selection method in its own right, but with one additional modification it can be used to efficiently produce LASSO solutions." However, nowhere can I find an explanation of what the "additional modification" is that is making these results LASSO results rather than LAR results. When I run the code on the same data with "selection=lasso" instead, I get the same best fit model, but the plots and tables show variables (after the best fit model has been chosen in an earlier iteration) being removed from the model as their coefficient is shrunk to 0 (as I would expect with a LASSO regression), which is not the case of the output using the above example code. Can anyone shed some light on how I am using LARS to get LASSO results? Thanks!&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jan 2018 16:23:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-modify-LAR-to-produce-LASSO-results-with-proc-glmselect/m-p/425610#M22378</guid>
      <dc:creator>Robin_B</dc:creator>
      <dc:date>2018-01-07T16:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify LAR to produce LASSO results with proc glmselect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-modify-LAR-to-produce-LASSO-results-with-proc-glmselect/m-p/425793#M22384</link>
      <description>&lt;P&gt;See &lt;A href="https://support.sas.com/rnd/app/stat/papers/2015/PenalizedRegression_LinearModels.pdf" target="_self"&gt;this paper&lt;/A&gt; which shows how to use various penalized methods in PROC GLMSELECT, including LASSO.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 15:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-modify-LAR-to-produce-LASSO-results-with-proc-glmselect/m-p/425793#M22384</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-01-08T15:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify LAR to produce LASSO results with proc glmselect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-modify-LAR-to-produce-LASSO-results-with-proc-glmselect/m-p/425816#M22385</link>
      <description>&lt;P&gt;Thanks for the response! I actually saw this paper, and have run the glmselect with the LASSO option (and ended up with the same FINAL&amp;nbsp;model, though the overall results do differ). I'm just looking to understand if&amp;nbsp;and how the LAR option is being modified to get a LASSO result in the code I shared.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 16:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-modify-LAR-to-produce-LASSO-results-with-proc-glmselect/m-p/425816#M22385</guid>
      <dc:creator>Robin_B</dc:creator>
      <dc:date>2018-01-08T16:41:35Z</dc:date>
    </item>
  </channel>
</rss>

