next up previous contents
Next: Lips: spatial smoothing of Up: Ice: non-parametric smoothing in Previous: An undirected model using

An intrinsic prior with a hyperparameter

An alternative, and perhaps more efficient, parameterisation is to consider the precision of the random effects as a hyperparameter. The essential changes to the previous model area as follows.

eqnarray1219

The graph is shown in Figure 13.

As introduced in Section 9.5 of the manual, we need to be careful in deriving the full conditional sampling distribution for tex2html_wrap_inline2916 . If we were to leave the construction of this distribution to BUGS, a likelihood term would be included for each tex2html_wrap_inline3854 : however, the likelihood for tex2html_wrap_inline2916 is not the product of these terms. Therefore we have to calculate algebraically the full conditional distribution for tex2html_wrap_inline2916 and put it in the BUGS model specification: as in the sampling distributions for the tex2html_wrap_inline2914 's the precedence rule in BUGS then ensures that the tex2html_wrap_inline2914 terms that now appear in the apparent prior for tex2html_wrap_inline2916 are not included as likelihood terms.

One can show that the conditional autoregressive model shown above is equivalent to the improper prior

displaymath3904

which provides the correct likelihood term for tex2html_wrap_inline2916 .

The essentials of the model specification (in iceCAR.bug) are shown below.

   
{
   for (i in 1:I) {
      cases[i]        ~ dpois(mu[i]);
      log(mu[i])     <- log(pyr[i]) + alpha[age[i]] + beta[year[i]]
   }
   for (k in 1:K){
      betaprec[k]    <- Nneighs[k] * tau;
   }
   d             <- 0.0001 + sum(tau.like[])/2;
   r             <- 0.0001 + K/2;
   tau            ~ dgamma(r,d);
 }

  figure1240
Figure 13:   Graphical model for ice example, using the undirected representation (the intrinsic prior) for the random effects and a hyperparameter tex2html_wrap_inline2916 for their precision.

A simple BUGS run of 1000 iterations (following a 500 iteration burn-in) took 17 seconds. The results for all 3 models are shown below. We note essentially the same results coming from the autoregressive and the hyperparameter model, whereas the intrinsic prior model with tex2html_wrap_inline2986 acting in the linear predictor is substantially different. After a further 9000 iterations, this model still gave rather different results. We therefore do not recommend this approach, and suggest putting the full conditional distribution for the precision parameter. breslow:clayton:93 estimated tex2html_wrap_inline2986 to be .12 (SD .06).

tabular1249


next up previous contents
Next: Lips: spatial smoothing of Up: Ice: non-parametric smoothing in Previous: An undirected model using

Daniel Farewell
Mon Sep 13 16:39:37 BST 1999