<?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 can't assign an Array in a Dirichlet prior, but SAS requires a vector for Dirichlet in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/can-t-assign-an-Array-in-a-Dirichlet-prior-but-SAS-requires-a/m-p/196068#M10476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put a Model in Proc MCMC, and set one of the parameters as Dirichlet prior:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Proc MCMC Data=test ...... ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp; Parms Y X;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp; Array X[3] x1 x2 x3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp; Array P[3] p1 p2 p3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model A1 ~ normal( Y + x1, sd=1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model A2 ~ normal( Y + x2, sd=1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model A3 ~ normal( Y + x3, sd=1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prior Y ~ beta(....);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prior X ~ Dirichlet(P);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Run;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS kept telling me that "The name X is already defined as a variable and cannot be redeclared as an array by the ARRAY statement"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I delete the Array statement, SAS showed ERROR: The DIRICHLET distribution must be applied to an array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is very frustrating. Can somebody please tell me how to fix this problem? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2015 03:13:33 GMT</pubDate>
    <dc:creator>csfcgua</dc:creator>
    <dc:date>2015-07-06T03:13:33Z</dc:date>
    <item>
      <title>can't assign an Array in a Dirichlet prior, but SAS requires a vector for Dirichlet</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/can-t-assign-an-Array-in-a-Dirichlet-prior-but-SAS-requires-a/m-p/196068#M10476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put a Model in Proc MCMC, and set one of the parameters as Dirichlet prior:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Proc MCMC Data=test ...... ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp; Parms Y X;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp; Array X[3] x1 x2 x3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp; Array P[3] p1 p2 p3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model A1 ~ normal( Y + x1, sd=1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model A2 ~ normal( Y + x2, sd=1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model A3 ~ normal( Y + x3, sd=1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prior Y ~ beta(....);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prior X ~ Dirichlet(P);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;Run;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS kept telling me that "The name X is already defined as a variable and cannot be redeclared as an array by the ARRAY statement"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I delete the Array statement, SAS showed ERROR: The DIRICHLET distribution must be applied to an array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is very frustrating. Can somebody please tell me how to fix this problem? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 03:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/can-t-assign-an-Array-in-a-Dirichlet-prior-but-SAS-requires-a/m-p/196068#M10476</guid>
      <dc:creator>csfcgua</dc:creator>
      <dc:date>2015-07-06T03:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: can't assign an Array in a Dirichlet prior, but SAS requires a vector for Dirichlet</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/can-t-assign-an-Array-in-a-Dirichlet-prior-but-SAS-requires-a/m-p/196069#M10477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then use another name &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000080;"&gt;Proc MCMC Data=test ...... ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000080;"&gt;&amp;nbsp;&amp;nbsp; Parms Y X;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp; Array &lt;STRONG&gt;XX&lt;/STRONG&gt;[3] x1 x2 x3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000080;"&gt;&amp;nbsp;&amp;nbsp; Array P[3] p1 p2 p3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model A1 ~ normal( Y + x1, sd=1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model A2 ~ normal( Y + x2, sd=1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model A3 ~ normal( Y + x3, sd=1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prior Y ~ beta(....);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prior X ~ Dirichlet(P);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000080;"&gt;Run;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 13:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/can-t-assign-an-Array-in-a-Dirichlet-prior-but-SAS-requires-a/m-p/196069#M10477</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-07-06T13:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: can't assign an Array in a Dirichlet prior, but SAS requires a vector for Dirichlet</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/can-t-assign-an-Array-in-a-Dirichlet-prior-but-SAS-requires-a/m-p/196070#M10478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;But both X and P&amp;nbsp; in dirichlet must be declared as array.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 02:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/can-t-assign-an-Array-in-a-Dirichlet-prior-but-SAS-requires-a/m-p/196070#M10478</guid>
      <dc:creator>csfcgua</dc:creator>
      <dc:date>2015-07-08T02:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: can't assign an Array in a Dirichlet prior, but SAS requires a vector for Dirichlet</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/can-t-assign-an-Array-in-a-Dirichlet-prior-but-SAS-requires-a/m-p/327090#M17275</link>
      <description>&lt;P&gt;I ran into the same problem. Any solution? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 15:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/can-t-assign-an-Array-in-a-Dirichlet-prior-but-SAS-requires-a/m-p/327090#M17275</guid>
      <dc:creator>charlie26</dc:creator>
      <dc:date>2017-01-24T15:55:45Z</dc:date>
    </item>
  </channel>
</rss>

