-
For t = 1 : L (we set L = 100)
Sample the modified Cholesky parameters ψ and log (σ 2) from where (ψ̂, σ̂ 2) are the maximum likelihood estimates of the Pourhamadi parameters and σ 2 corresponding to the current set of knots, and I (ψ̂, log (σ̂ 2)) is their information matrix evaluated at these estimates.
Accept this draw with probability where p (ψ t| k′, tk′) is the prior distribution of ψ evaluated at ψ t, p (σ 2,t) is the prior distribution of σ 2 evaluated at σ 2,t, and ξ (ψ t, log (σ 2,t)) is the multivariate normal density given in step (a) evaluated at (ψ t, log (σ 2,t)).
If the move is not accepted, let ψt = ψt–1, log(σ2,t) = log(σ2,t–1)
Draw a fixed effect, α*, from the conditional posterior distribution , C is a block-diagonal matrix composed of the n matrices and the matrix – , BFi, and BRi are defined in Section 3, Y is all of the observed data, and α̂ is the maximum likelihood estimate of α.
Draw a random effect, γ*, from the conditional posterior distribution , and
|