<?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: Converting each row fo data into a matrix in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Converting-each-row-fo-data-into-a-matrix/m-p/133964#M1090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the SQRSYM and SQRVECH functions which are designed for doing exactly this. If you have read your six variables into the matrix x, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M=sqrvech(x[i,]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should do the trick for the ith row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 11:33:21 GMT</pubDate>
    <dc:creator>IanWakeling</dc:creator>
    <dc:date>2013-05-14T11:33:21Z</dc:date>
    <item>
      <title>Converting each row fo data into a matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Converting-each-row-fo-data-into-a-matrix/m-p/133963#M1089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a long time series of a covariance matrix stored in a sas dataset. For each observation, there are 7 variables variables like:&lt;/P&gt;&lt;P&gt;"date c11 c21 c31 c22 c32 c33"&lt;/P&gt;&lt;P&gt;where c11 - c33 are the lower triangle elements of the cov-matrix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to make use of some matrix routines in IML, I would like to convert each row into a full matrix:&lt;/P&gt;&lt;P&gt;M= {&amp;nbsp;&amp;nbsp; c11 c21 c31,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c21 c22 c32,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c31 c32 c33 }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone provide some suggestions on the transformation please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 14:45:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Converting-each-row-fo-data-into-a-matrix/m-p/133963#M1089</guid>
      <dc:creator>1MoreThing</dc:creator>
      <dc:date>2013-05-13T14:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Converting each row fo data into a matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Converting-each-row-fo-data-into-a-matrix/m-p/133964#M1090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the SQRSYM and SQRVECH functions which are designed for doing exactly this. If you have read your six variables into the matrix x, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M=sqrvech(x[i,]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should do the trick for the ith row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 11:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Converting-each-row-fo-data-into-a-matrix/m-p/133964#M1090</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2013-05-14T11:33:21Z</dc:date>
    </item>
  </channel>
</rss>

