<?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: Bayesian implementation of UN@AR(1) model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-implementation-of-UN-AR-1-model/m-p/845514#M41866</link>
    <description>&lt;P&gt;The only thing I can think of is to look at PROC BGLIMM, and model the unstructured part of the Kronecker expression with a RANDOM statement and the AR(1) part with a REPEATED statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc bglimm data=sg2;
class tree aspect height time ;
model y = height|time / noint ;

random intercept height/type=un subject=tree ;
repeated  time / type =ar(1) subject=tree(aspect*height) r rcorr ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Absolutely no guarantees on this, but if you do get it to give reasonable results, I would really, REALLY like to know of any tweaks you might have used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 18:51:37 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2022-11-21T18:51:37Z</dc:date>
    <item>
      <title>Bayesian implementation of UN@AR(1) model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-implementation-of-UN-AR-1-model/m-p/843577#M41805</link>
      <description>&lt;P&gt;Dear all:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you all are doing well and keeping safe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to implement this mixed model in Bayesian framework. The codes are below:&lt;/P&gt;&lt;P&gt;***********************************************************************************************&lt;/P&gt;&lt;P&gt;/*Multivariate RM Models with Kronecker product covariance*/&lt;BR /&gt;proc mixed data=sg2 covtest cl;&lt;BR /&gt;class tree aspect height time ;&lt;BR /&gt;model y = height|time / noint ;&lt;/P&gt;&lt;P&gt;random tree ;&lt;BR /&gt;repeated height time / type = un@ar(1) subject=tree(aspect) r rcorr;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;********************************************************************************************&lt;/P&gt;&lt;P&gt;Height factor has 6 levels; time factor has 10 levels and aspect has 2 levels.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 13:07:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-implementation-of-UN-AR-1-model/m-p/843577#M41805</guid>
      <dc:creator>JOADUTWUM</dc:creator>
      <dc:date>2022-11-10T13:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bayesian implementation of UN@AR(1) model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-implementation-of-UN-AR-1-model/m-p/845514#M41866</link>
      <description>&lt;P&gt;The only thing I can think of is to look at PROC BGLIMM, and model the unstructured part of the Kronecker expression with a RANDOM statement and the AR(1) part with a REPEATED statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc bglimm data=sg2;
class tree aspect height time ;
model y = height|time / noint ;

random intercept height/type=un subject=tree ;
repeated  time / type =ar(1) subject=tree(aspect*height) r rcorr ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Absolutely no guarantees on this, but if you do get it to give reasonable results, I would really, REALLY like to know of any tweaks you might have used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 18:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-implementation-of-UN-AR-1-model/m-p/845514#M41866</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-11-21T18:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Bayesian implementation of UN@AR(1) model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-implementation-of-UN-AR-1-model/m-p/845787#M41879</link>
      <description>Dear &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for the helpful reply.&lt;BR /&gt;&lt;BR /&gt;I adjusted the statements as:&lt;BR /&gt;&lt;BR /&gt;/*PROC BGLIMM default*/&lt;BR /&gt;proc bglimm data=rrdsg seed=475193 nmc=500000 nbi=5000 thin=100 nthreads = 4 dic diag = (mcse ess raftery geweke)&lt;BR /&gt;outpost = pr_out plots = (trace autocorr density) STATISTICS(PERCENT=(2.5 50 97.5));&lt;BR /&gt;class tree aspect height time;&lt;BR /&gt;model pbsg = height|rrd / noint cprior=normal(var=1e4);&lt;BR /&gt;random intercept / subject = tree nuts;&lt;BR /&gt;random intercept height / type=un subject=tree(aspect) gcorr nuts;&lt;BR /&gt;repeated time / type=ar(1) subject=tree(aspect*height) rcorr;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;One problem is the diagnostics for the fixed height effects. Dependence is too high.</description>
      <pubDate>Tue, 22 Nov 2022 22:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-implementation-of-UN-AR-1-model/m-p/845787#M41879</guid>
      <dc:creator>JOADUTWUM</dc:creator>
      <dc:date>2022-11-22T22:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bayesian implementation of UN@AR(1) model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-implementation-of-UN-AR-1-model/m-p/846656#M41920</link>
      <description>&lt;P&gt;The only thing in the code I see that might be causing that are these two statements:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;random intercept / subject = tree nuts;
random intercept height / type=un subject=tree(aspect) gcorr nuts;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What happens if you shift those around a bit to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;random intercept / subject = tree nuts;
random height / type=un subject=tree(aspect) gcorr nuts;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This ought to treat height more like a G side repeated measure, and remove the two level intercepts for tree and aspect within tree, as I suspect you may be short of enough data to fit both of those and height.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 17:59:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bayesian-implementation-of-UN-AR-1-model/m-p/846656#M41920</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-11-28T17:59:27Z</dc:date>
    </item>
  </channel>
</rss>

