<?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: Proc MCMC Error: doesn't produce a positive log likelihood in SAS University Edition in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-MCMC-Error-doesn-t-produce-a-positive-log-likelihood-in-SAS/m-p/281477#M59099</link>
    <description>&lt;P&gt;What is the range and typical values of x? &amp;nbsp;Obviously x must be greater than 0, but also x &amp;gt; B so that the expression (x-B)**C is defined. &amp;nbsp;Is B always bounded above by some B0 and x &amp;gt; B0? Otherwise&amp;nbsp;&amp;nbsp;you're going to have problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It also looks like it is possible to choose parameters such that p is greater than 1, which will cause problems in the binomial(n,p) computation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are you trying to accomplish?&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2016 15:27:40 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-06-30T15:27:40Z</dc:date>
    <item>
      <title>Proc MCMC Error: doesn't produce a positive log likelihood in SAS University Edition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-MCMC-Error-doesn-t-produce-a-positive-log-likelihood-in-SAS/m-p/281430#M59097</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am applying MCMC in SAS University edition, I got the error that the log likelihood is not positive.&lt;/P&gt;&lt;P&gt;This is a part of the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;p= A**(x+B)**C + D*exp(-1*E*(log(x)-log(F))**2) + G*(H**x)/(1+G*(H**x));
model y ~ binomial(n,p);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A to H are parameters which have prior distribution of uniform.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 13:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-MCMC-Error-doesn-t-produce-a-positive-log-likelihood-in-SAS/m-p/281430#M59097</guid>
      <dc:creator>Marwah</dc:creator>
      <dc:date>2016-06-30T13:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc MCMC Error: doesn't produce a positive log likelihood in SAS University Edition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-MCMC-Error-doesn-t-produce-a-positive-log-likelihood-in-SAS/m-p/281477#M59099</link>
      <description>&lt;P&gt;What is the range and typical values of x? &amp;nbsp;Obviously x must be greater than 0, but also x &amp;gt; B so that the expression (x-B)**C is defined. &amp;nbsp;Is B always bounded above by some B0 and x &amp;gt; B0? Otherwise&amp;nbsp;&amp;nbsp;you're going to have problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It also looks like it is possible to choose parameters such that p is greater than 1, which will cause problems in the binomial(n,p) computation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are you trying to accomplish?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 15:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-MCMC-Error-doesn-t-produce-a-positive-log-likelihood-in-SAS/m-p/281477#M59099</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-06-30T15:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc MCMC Error: doesn't produce a positive log likelihood in SAS University Edition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-MCMC-Error-doesn-t-produce-a-positive-log-likelihood-in-SAS/m-p/282123#M59159</link>
      <description>&lt;P&gt;x is age grouped in five years, it ranges from 0 to 110 (eg. 0,5,10,...110). B ranges from 0 to 1. The exponent is (x+B) not (x-B) so it is always defined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It rarely happens in the models that p is greater than 1 but anyway I put a condition that if it is greater than 1 then substitute with 0.999.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to approximate a posterior distribution of the parameters (A to H) through slice sampling or Metropolis Hastings method. but the problem here is that the deaths is binomial and the prior distributions are not for the probability of success of the binomial, they are for the parameters that are in Heligman Pollard model (the p equation).&lt;/P&gt;&lt;P&gt;Sorry for replying late and thank you for your time.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 12:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-MCMC-Error-doesn-t-produce-a-positive-log-likelihood-in-SAS/m-p/282123#M59159</guid>
      <dc:creator>Marwah</dc:creator>
      <dc:date>2016-07-05T12:40:21Z</dc:date>
    </item>
  </channel>
</rss>

