<?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 create a sparse matrix? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-sparse-matrix/m-p/173402#M3410</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently we have some problemes with using SAS.&lt;/P&gt;&lt;P&gt;We have used the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;PROC IMPORT OUT= WORK.FRAUD &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt; DATAFILE= "C:\...&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt; line-height: 1.5em;"&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt; DBMS=CSV REPLACE; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;GETNAMES=YES; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAROW=2; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;This datafile contains 3958352 records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;Now we want to make a sparse matrix from this datafile.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;Do you guys know how we can do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;We found some example code on the internet:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;x = {3 1.1 0 0 ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1.1 4 0 3.2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0 1 10 0 ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0 3.2 0 3 };&lt;/P&gt;&lt;P&gt;a = sparse(x, "sym");&lt;/P&gt;&lt;P&gt;print a[colname={"Value" "Row" "Col"}];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we don't know how to say that x containts the dataset work.fraud.&lt;/P&gt;&lt;P&gt;We couldn't find anything on the sas community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2014 10:09:56 GMT</pubDate>
    <dc:creator>BartV</dc:creator>
    <dc:date>2014-04-09T10:09:56Z</dc:date>
    <item>
      <title>How to create a sparse matrix?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-sparse-matrix/m-p/173402#M3410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently we have some problemes with using SAS.&lt;/P&gt;&lt;P&gt;We have used the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;PROC IMPORT OUT= WORK.FRAUD &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt; DATAFILE= "C:\...&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt; line-height: 1.5em;"&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt; DBMS=CSV REPLACE; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;GETNAMES=YES; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAROW=2; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;This datafile contains 3958352 records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;Now we want to make a sparse matrix from this datafile.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;Do you guys know how we can do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'SAS Monospace';"&gt;We found some example code on the internet:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;x = {3 1.1 0 0 ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1.1 4 0 3.2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0 1 10 0 ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0 3.2 0 3 };&lt;/P&gt;&lt;P&gt;a = sparse(x, "sym");&lt;/P&gt;&lt;P&gt;print a[colname={"Value" "Row" "Col"}];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we don't know how to say that x containts the dataset work.fraud.&lt;/P&gt;&lt;P&gt;We couldn't find anything on the sas community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 10:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-sparse-matrix/m-p/173402#M3410</guid>
      <dc:creator>BartV</dc:creator>
      <dc:date>2014-04-09T10:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sparse matrix?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-sparse-matrix/m-p/173403#M3411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should post it at another forum.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" data-containerid="2007" data-containertype="14" data-objectid="47" data-objecttype="14" href="https://communities.sas.com/community/support-communities/sas_iml_and_sas_iml_studio" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;SAS/IML and SAS/IML Studio&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 11:31:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-sparse-matrix/m-p/173403#M3411</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-04-09T11:31:31Z</dc:date>
    </item>
  </channel>
</rss>

