<?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: HPGENSELECT - LASSO- LOGISTIC in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/238224#M12623</link>
    <description>&lt;P&gt;Thanks again for your support!&lt;/P&gt;
&lt;P&gt;/Thomas&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2015 07:59:21 GMT</pubDate>
    <dc:creator>bollibompa</dc:creator>
    <dc:date>2015-12-08T07:59:21Z</dc:date>
    <item>
      <title>HPGENSELECT - LASSO- LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/235434#M12458</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have now updated my SAS/STAT to 14.1 which inlcude the LASSO selection in HPGENSELECT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have anyone tried to fo a &lt;STRONG&gt;logistic&lt;/STRONG&gt; regression with HPGENSELECT?&lt;/P&gt;
&lt;P&gt;Is it possible?&lt;/P&gt;
&lt;P&gt;However, I have som problems with the syntax performing a logistic regression in HPGENSELECT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for all advice regarding this.&lt;/P&gt;
&lt;P&gt;/Thomas&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 09:35:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/235434#M12458</guid>
      <dc:creator>bollibompa</dc:creator>
      <dc:date>2015-11-19T09:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: HPGENSELECT - LASSO- LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/235554#M12462</link>
      <description>&lt;P&gt;Please post the syntax that is giving you the error.&amp;nbsp; HPGENSELECT supports the DIST=BINARY and DIST=BINOMIAL options for logistic regression.&amp;nbsp; For example, the following statements work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc hpgenselect data=sashelp.class; 
   model sex(event="M") = height weight age / dist=binary;
   selection method=lasso;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Nov 2015 21:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/235554#M12462</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-11-19T21:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: HPGENSELECT - LASSO- LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/235901#M12482</link>
      <description>&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;I had to add dist=binary, then it worked!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, one additional question. If you only wtite selection=lasso, what is the default method for varaible selection?&lt;/P&gt;
&lt;P&gt;Is cross-validation included in HPGENSELECT with Lasso?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2015 12:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/235901#M12482</guid>
      <dc:creator>bollibompa</dc:creator>
      <dc:date>2015-11-22T12:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: HPGENSELECT - LASSO- LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/235913#M12483</link>
      <description>&lt;P&gt;The &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_hpgenselect_toc.htm" target="_self"&gt;HPGENSELECT documentation is online&lt;/A&gt; and answers all of these questions. Look at the SELECTION statement to see various defaults.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't understand your question about "the default method for variable selection." The LASSO method IS a variable-selection method, so the default method is LASSO.&amp;nbsp; If you are talking about the SELECT= option, that option is not valid for LASSO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you can use the PARTITION statement in conjunction with LASSO to do cross validation.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2015 17:16:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/235913#M12483</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-11-22T17:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: HPGENSELECT - LASSO- LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/235922#M12484</link>
      <description>&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I was not clear in my previous question. Different methods (AIC, BIC, Cross-validation) can be used to select an optimal value of the regularization parameter i LASSO.&lt;/P&gt;
&lt;P&gt;I have seen some code examples where selection=LASSO(choose=sbc).&lt;/P&gt;
&lt;P&gt;If you don't enter anything after LASSO (ie no choose option), which model does SAS use to estimate the regularization parameter?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since LASSO is quite new in HPGENSELECT I have not found any code examples how do perform cross-validation in this procedure (this is the first time I perform a LASSO regression).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could this be a correct syntax:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; hpgenselect &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;sashelp&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;class&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;BR /&gt;partition fraction(test=0.25 validate=0.25);
   &lt;SPAN class="token procnames"&gt;model&lt;/SPAN&gt; sex&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;event&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"M"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; height &lt;SPAN class="token statement"&gt;weight&lt;/SPAN&gt; age &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; dist&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;binary&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   selection method&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;lasso&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&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;/Thomas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2015 20:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/235922#M12484</guid>
      <dc:creator>bollibompa</dc:creator>
      <dc:date>2015-11-22T20:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: HPGENSELECT - LASSO- LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/235974#M12491</link>
      <description>&lt;P&gt;If you run the statements that you propose, you will see a note in the log that says "ERROR: The TEST partition is not available for the LASSO method."&amp;nbsp;&amp;nbsp; You can use the VALIDATE= option to compute the AIC, AICC, BIC, and ASE statistics on the validation data.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;bollibompa wrote:
&lt;P&gt;If you don't enter anything after LASSO (ie no choose option), which model does SAS use to estimate the regularization&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your question is answered&amp;nbsp;in &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_hpgenselect_syntax14.htm" target="_self"&gt;the documentation of the SELECTION statement&lt;/A&gt;, which I encourage you to read: "If you specify METHOD=LASSO and you do not specify either the &lt;SPAN class="AAcrosslink"&gt;CHOOSE=&lt;/SPAN&gt; or &lt;SPAN class="AAcrosslink"&gt;STOP=&lt;/SPAN&gt; option, then the model in the last LASSO step is chosen as the selected model."&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my opinion, you should probably choose a CHOOSE= criterion. If you are going to specify a validation set, presumably you will want to use CHOOSE=VALIDATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, if you add the DETAILS=ALL option to the SELECTION statement, then the output contains additional information that might help clarify what LASSO is doing at each step.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/235974#M12491</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-11-23T13:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: HPGENSELECT - LASSO- LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/238224#M12623</link>
      <description>&lt;P&gt;Thanks again for your support!&lt;/P&gt;
&lt;P&gt;/Thomas&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 07:59:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/238224#M12623</guid>
      <dc:creator>bollibompa</dc:creator>
      <dc:date>2015-12-08T07:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: HPGENSELECT - LASSO- LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/238256#M12624</link>
      <description>&lt;P&gt;You are welcome. If you think the question has been answered, please close the thread.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 13:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/HPGENSELECT-LASSO-LOGISTIC/m-p/238256#M12624</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-12-08T13:40:20Z</dc:date>
    </item>
  </channel>
</rss>

