<?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 Lasso Logistic Regression using GLMSELECT procedure in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Lasso-Logistic-Regression-using-GLMSELECT-procedure/m-p/584932#M166712</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been working on a Lasso Logistic regression&amp;nbsp; with binary response and 20 predictor varaibles (a mix of categorical and continuous ) and have read a lot on using GLMSELECT procedure and&amp;nbsp;coding the outcome ±1, and applying a cutoff (usually 0) to the predictions. I also tried using HPGENSELECT procedure and somehow it throws the Format error and no predictor variables are displayed in the results and hence want to try GLMSELECT proc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My query is what does the line '&lt;STRONG&gt;&lt;U&gt;applying a cutoff (usually 0) to the predictions&lt;/U&gt;&lt;/STRONG&gt;' mean?&amp;nbsp; Can anyone throw more light on this approach, like any sample SAS code where this has been applied?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time and support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2019 13:42:00 GMT</pubDate>
    <dc:creator>akanujia44</dc:creator>
    <dc:date>2019-08-29T13:42:00Z</dc:date>
    <item>
      <title>Lasso Logistic Regression using GLMSELECT procedure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lasso-Logistic-Regression-using-GLMSELECT-procedure/m-p/584932#M166712</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been working on a Lasso Logistic regression&amp;nbsp; with binary response and 20 predictor varaibles (a mix of categorical and continuous ) and have read a lot on using GLMSELECT procedure and&amp;nbsp;coding the outcome ±1, and applying a cutoff (usually 0) to the predictions. I also tried using HPGENSELECT procedure and somehow it throws the Format error and no predictor variables are displayed in the results and hence want to try GLMSELECT proc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My query is what does the line '&lt;STRONG&gt;&lt;U&gt;applying a cutoff (usually 0) to the predictions&lt;/U&gt;&lt;/STRONG&gt;' mean?&amp;nbsp; Can anyone throw more light on this approach, like any sample SAS code where this has been applied?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time and support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 13:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lasso-Logistic-Regression-using-GLMSELECT-procedure/m-p/584932#M166712</guid>
      <dc:creator>akanujia44</dc:creator>
      <dc:date>2019-08-29T13:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lasso Logistic Regression using GLMSELECT procedure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lasso-Logistic-Regression-using-GLMSELECT-procedure/m-p/584933#M166713</link>
      <description>&lt;P&gt;If the outcomes are ±1 then a cutoff of 0 would be on the predicted values used to determine if the regression predicts an observation is a –1 or a +1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using binary responses in PROC GLMSELECT is not truly a logistic regression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC HPGENSELECT does have the Lasso for use with logistic regression (and really for use with many generalized linear models).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I also tried using HPGENSELECT procedure and somehow it throws the Format error&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We can't help with this minimal explanation. We need to see the log (not just the error message but the entire PROC HPGENSELECT part of the log). Please copy the relevant parts of the log as text, and then paste it into the window that appears when you click on the {i} icon.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 15:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lasso-Logistic-Regression-using-GLMSELECT-procedure/m-p/584933#M166713</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-29T15:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lasso Logistic Regression using GLMSELECT procedure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lasso-Logistic-Regression-using-GLMSELECT-procedure/m-p/585850#M167168</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SAS code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc hpgenselect data=mybinarydata ;&lt;BR /&gt;where dep ne . and treat =a;&lt;BR /&gt;class cov1 cov2 cov3 cov4..........c10;&lt;BR /&gt;model dep(event='1') = cov1 cov2 cov3 cov4..........c20&amp;nbsp;/ dist=binary;&lt;BR /&gt;selection method=Lasso(choose=SBC) details=all;&lt;BR /&gt;performance details;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the SAS log has the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The HPGENSELECT procedure is executing in single-machine mode.&lt;BR /&gt;ERROR: The analytical component failed to load a format.&lt;BR /&gt;&lt;BR /&gt;Log/Listing results for thread 1.&lt;BR /&gt;ERROR: The format xyz could not be loaded for variable cov1.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the procedure runs, but with this error and it has only intercept in the final results. Not sure what is gone wrong. Any help on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 14:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lasso-Logistic-Regression-using-GLMSELECT-procedure/m-p/585850#M167168</guid>
      <dc:creator>akanujia44</dc:creator>
      <dc:date>2019-09-03T14:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lasso Logistic Regression using GLMSELECT procedure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lasso-Logistic-Regression-using-GLMSELECT-procedure/m-p/585853#M167169</link>
      <description>&lt;P&gt;Run PROC CONTENTS on the data set&amp;nbsp;&lt;SPAN&gt;mybinarydata. Is there a format listed for COV1? If so, then you have to make that format available in your code.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 15:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lasso-Logistic-Regression-using-GLMSELECT-procedure/m-p/585853#M167169</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-03T15:05:13Z</dc:date>
    </item>
  </channel>
</rss>

