<?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: Specifying half-cauchy (hyper)prior in PROC MCMC in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Specifying-half-cauchy-hyper-prior-in-PROC-MCMC/m-p/121661#M6389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the idea, I tried this with&lt;/P&gt;&lt;P&gt;&amp;nbsp; hyperprior tau ~ igamma(1, scale = 1);&lt;/P&gt;&lt;P&gt;so I would have assumed that is not the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure whether the error message means that you truly get =0 in a run, or whether it is related to some checking that SAS does regarding whether support of the prior includes 0 (with certain priors getting special handling with a &amp;gt;0 restriction)? I'm purely speculating in this respect as I do not really know how SAS handles that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Apr 2013 14:50:14 GMT</pubDate>
    <dc:creator>BjoernHolzhauer</dc:creator>
    <dc:date>2013-04-26T14:50:14Z</dc:date>
    <item>
      <title>Specifying half-cauchy (hyper)prior in PROC MCMC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Specifying-half-cauchy-hyper-prior-in-PROC-MCMC/m-p/121659#M6387</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;has someone tried to specify a half-cauchy hyperprior in PROC MCMC (I suppose it would likely be the same in any other procedure)?&lt;BR /&gt; &lt;BR /&gt;I am trying to get something like this to work (in order to get a horseshoe shrinkage estimator):&lt;BR /&gt; hyperprior lambda ~ halfcauchy(0,1); &lt;BR /&gt;hyperprior tau ~ some other distribution; &lt;BR /&gt;hyperprior sigma ~ some other distribution; &lt;BR /&gt;prior theta ~ normal(0,sd=lambda*tau); &lt;BR /&gt;model y ~ normal( theta, sd=sigma); &lt;/P&gt;&lt;P&gt;The standard distributions do not seem to include the half-cauchy, so I tried to get it by specifying&lt;BR /&gt; hyperprior lambda ~ cauchy(0,1); &lt;BR /&gt;... &lt;BR /&gt;prior theta ~ normal(0,sd=abs(lambda)*tau); &lt;BR /&gt;... &lt;BR /&gt;But if I do that, I get (presumably because the support of lambda includes zero)&lt;BR /&gt; ERROR: The NORMAL distribution of beta1 is invalid. It has a nonpositive variance, standard deviation, or precision parameter 0. Use an appropriate parameter value instead.&lt;BR /&gt; &lt;BR /&gt;How do I get something like this to work? If you happen to know the answer, your help would be appreciated.&lt;BR /&gt; &lt;BR /&gt;Many thanks, &lt;BR /&gt;Björn &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 13:19:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Specifying-half-cauchy-hyper-prior-in-PROC-MCMC/m-p/121659#M6387</guid>
      <dc:creator>BjoernHolzhauer</dc:creator>
      <dc:date>2013-04-26T13:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying half-cauchy (hyper)prior in PROC MCMC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Specifying-half-cauchy-hyper-prior-in-PROC-MCMC/m-p/121660#M6388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's strange that you encounter the error, since the probability that you would get an exact zero during a run is exceedingly small. Are you sure it isn't tau that is causing the problem? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 13:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Specifying-half-cauchy-hyper-prior-in-PROC-MCMC/m-p/121660#M6388</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-04-26T13:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying half-cauchy (hyper)prior in PROC MCMC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Specifying-half-cauchy-hyper-prior-in-PROC-MCMC/m-p/121661#M6389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the idea, I tried this with&lt;/P&gt;&lt;P&gt;&amp;nbsp; hyperprior tau ~ igamma(1, scale = 1);&lt;/P&gt;&lt;P&gt;so I would have assumed that is not the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure whether the error message means that you truly get =0 in a run, or whether it is related to some checking that SAS does regarding whether support of the prior includes 0 (with certain priors getting special handling with a &amp;gt;0 restriction)? I'm purely speculating in this respect as I do not really know how SAS handles that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 14:50:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Specifying-half-cauchy-hyper-prior-in-PROC-MCMC/m-p/121661#M6389</guid>
      <dc:creator>BjoernHolzhauer</dc:creator>
      <dc:date>2013-04-26T14:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying half-cauchy (hyper)prior in PROC MCMC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Specifying-half-cauchy-hyper-prior-in-PROC-MCMC/m-p/121662#M6390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I asked someone smarter than I am about this. He informed me that the initial value for the PROC MCMC simulation is based on the mode of the prior distribution. For the Cauchy, the mode is zero, which leads to the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can either explicitly set an initial value, such as&lt;/P&gt;&lt;P&gt;PARM lambda 1;&lt;/P&gt;&lt;P&gt;or you can move the lower limit of the Cauchy distribution away from zero by using an expression like&lt;/P&gt;&lt;P&gt;lambda ~ cauchy(0, 1, lower=1e-12);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Tahoma','sans-serif'; font-size: 10pt;"&gt;The second choice will bound lambda away from zero, which might be a reasonable thing to do.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 15:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Specifying-half-cauchy-hyper-prior-in-PROC-MCMC/m-p/121662#M6390</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-05-02T15:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying half-cauchy (hyper)prior in PROC MCMC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Specifying-half-cauchy-hyper-prior-in-PROC-MCMC/m-p/121663#M6391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, specifying a positive initial value using the PARM statement was indeed the solution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 09:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Specifying-half-cauchy-hyper-prior-in-PROC-MCMC/m-p/121663#M6391</guid>
      <dc:creator>BjoernHolzhauer</dc:creator>
      <dc:date>2013-05-03T09:05:51Z</dc:date>
    </item>
  </channel>
</rss>

