<?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: Running Proc Logistic on a sparse matrix in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-Proc-Logistic-on-a-sparse-matrix/m-p/521421#M4495</link>
    <description>&lt;P&gt;I suggest you try PROC HPLOGISTIC, I would think that a CLASS variable with 5000 levels should be solvable&amp;nbsp;although I haven't actually done it myself.&amp;nbsp; Make sure that you use the CLASS statement and do not explicitly form the 5000-column dummy matrix, otherwise SAS won't be able to exploit the sparsity&amp;nbsp;structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if you are only interested in predictions, you can turn off the computations of standard errors and confidence intervals, which saves A LOT of time! Use PROC HPLOGISTIC NOSTDERR;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 15:35:23 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-12-14T15:35:23Z</dc:date>
    <item>
      <title>Running Proc Logistic on a sparse matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-Proc-Logistic-on-a-sparse-matrix/m-p/521419#M4494</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been working with a big and sparse matrix (over 5,000 columns -dummy variables- and 2M observations). For every observation, only 20-30 columns of the&amp;nbsp;&lt;SPAN&gt;5,000 contain a value. All of the 5,000&amp;nbsp;columns are independent variables, except for one, which is the dependent&amp;nbsp;I need to explain. Running proc&amp;nbsp;&lt;/SPAN&gt;Logistic on that matrix, besides&amp;nbsp;that technically results in an 'out of memory', is not a solutions as I would have to run it on a regularly basis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using IML, with&amp;nbsp;&lt;EM&gt;sparse&lt;/EM&gt;, &lt;EM&gt;dense&lt;/EM&gt; and &lt;EM&gt;full&lt;/EM&gt; functions I can get rid of the zeroes&amp;nbsp;and store only the significant&amp;nbsp;values. Hence,&amp;nbsp;my question arises as to&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;how can I run proc logistic /&amp;nbsp;glimmix on that resulting matrix, as it is totally distorted from the original one. And further, how could I be able to extract insights from the&amp;nbsp;results of these procedures&amp;nbsp;relating to the original matrix an its variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alexis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 11:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-Proc-Logistic-on-a-sparse-matrix/m-p/521419#M4494</guid>
      <dc:creator>abuza</dc:creator>
      <dc:date>2018-12-14T11:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Running Proc Logistic on a sparse matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-Proc-Logistic-on-a-sparse-matrix/m-p/521421#M4495</link>
      <description>&lt;P&gt;I suggest you try PROC HPLOGISTIC, I would think that a CLASS variable with 5000 levels should be solvable&amp;nbsp;although I haven't actually done it myself.&amp;nbsp; Make sure that you use the CLASS statement and do not explicitly form the 5000-column dummy matrix, otherwise SAS won't be able to exploit the sparsity&amp;nbsp;structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if you are only interested in predictions, you can turn off the computations of standard errors and confidence intervals, which saves A LOT of time! Use PROC HPLOGISTIC NOSTDERR;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 15:35:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-Proc-Logistic-on-a-sparse-matrix/m-p/521421#M4495</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-12-14T15:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Running Proc Logistic on a sparse matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-Proc-Logistic-on-a-sparse-matrix/m-p/521426#M4496</link>
      <description>Thank you Rick, I will give it a try.&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Alexis</description>
      <pubDate>Fri, 14 Dec 2018 11:54:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Running-Proc-Logistic-on-a-sparse-matrix/m-p/521426#M4496</guid>
      <dc:creator>abuza</dc:creator>
      <dc:date>2018-12-14T11:54:34Z</dc:date>
    </item>
  </channel>
</rss>

