<?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: Kronecker Product in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Kronecker-Product/m-p/811394#M39994</link>
    <description>&lt;P&gt;Do you have SAS/IML ?&lt;/P&gt;
&lt;P&gt;Maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; could give you a hand.&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 09:32:36 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-05-04T09:32:36Z</dc:date>
    <item>
      <title>Kronecker Product</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kronecker-Product/m-p/811347#M39991</link>
      <description>I used UN@AR(1) correlation structure for a spatiotemporal dataset in Proc Mixed. How can I get the spatiotemporal correlation (the Kronecker product of the two correlations)? Thank you.</description>
      <pubDate>Tue, 03 May 2022 23:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kronecker-Product/m-p/811347#M39991</guid>
      <dc:creator>JOADUTWUM</dc:creator>
      <dc:date>2022-05-03T23:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Kronecker Product</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kronecker-Product/m-p/811394#M39994</link>
      <description>&lt;P&gt;Do you have SAS/IML ?&lt;/P&gt;
&lt;P&gt;Maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; could give you a hand.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 09:32:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kronecker-Product/m-p/811394#M39994</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-04T09:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Kronecker Product</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kronecker-Product/m-p/811395#M39995</link>
      <description>Yes I do.</description>
      <pubDate>Wed, 04 May 2022 09:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kronecker-Product/m-p/811395#M39995</guid>
      <dc:creator>JOADUTWUM</dc:creator>
      <dc:date>2022-05-04T09:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Kronecker Product</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kronecker-Product/m-p/811402#M39996</link>
      <description>&lt;P&gt;To create an AR(1) matrix from the estimate, rho, see the first section in &lt;A href="https://blogs.sas.com/content/iml/2018/10/03/ar1-cholesky-root-simulation.html" target="_self"&gt;"Fast simulation of multivariate normal data with an AR(1) correlation structure."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's suppose both matrices are 3x3, although they can be any square dimensions. The following program computes the Kronecker product of an AR(1) correlation matrix with rho=0.8 and a unstructured matrix with estimates UN[1,2]=0.63,&amp;nbsp;UN[1,3]=0.12, and&amp;nbsp;UN[2,3]=0.34:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml;
/* return p x p matrix whose (i,j)th element is rho^|i - j| 
See https://blogs.sas.com/content/iml/2018/10/03/ar1-cholesky-root-simulation.html */
start AR1Corr(rho, p); 
   return rho##distance(T(1:p), T(1:p), "L1");
finish;
 
/* test on a matrix with rho = 0.8 */
rho = 0.8;  p = 3;
AR1 = AR1Corr(rho, p);

UN = {1    0.63 0.12,
      0.63 1    0.34,
      0.12 0.34 1   };

K = UN@AR1;
print UN, AR1, K;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 May 2022 10:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kronecker-Product/m-p/811402#M39996</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-05-04T10:11:33Z</dc:date>
    </item>
  </channel>
</rss>

