The following data represent the weights of r = 30 young rats measured week! y for n
Question:
The following data represent the weights of r = 30 young rats measured week! y for n = 5 weeks as quoted by Gelfand et al. (1990), Tanner (1996, Table 1.3 and Section 6.2.1), Carlin and Louis (2000, Example 5.6):
The weight of the ith rat in week j is denoted Xij and we suppose that weight growth is linear, that is,
but that the slope and intercept vary from rat to rat. We further suppose that a; and βi have a bivariate normal distribution, so that ai
and thus we have a random effects model. At the third stage, we suppose that
where we have used the notation W(Ω, v) for the Wishart distribution for a random k x k symmetric positive definite matrix V, which has density
Methods of sampling from this distribution are described in Odell and Feiveson (1966), Kennedy and Gentle (1990, Section 6.5.10) and Gelfand et al. (1990). [This example was omitted from the main text because we have avoided use of the Wishart distribution elsewhere in the book. A slightly simpler model in which ∑ is assumed to be diagonal is to be found as the example 'Rats' distributed with WinBUGS.
Explain in detail how you would use the Gibbs sampler to estimate the posterior distributions of a0 and β0, and if possible carry out this procedure.
Table 1.3 and Section 6.2.1
Step by Step Answer: