Research Article
Bayesian Adaptive Lasso for the Partial Functional Linear Spatial Autoregressive Model
Algorithm 1
An MCMC-based sampling algorithm for
.| Input: set up initial values , and the number of iterations of the sampling algorithm is . | | Output: a sequence of posterior samples . | | MCMC iterations: (the detailed Gibbs sampler cycles are outlined as follows) | | | For to do: | | (1) | Sample ; | | (2) | Sample ; | | (3) | Sample ; | | (4) | Sample ; | | (5) | Sample Inverse Gaussian ; | | (6) | Sample from (20) based on the Metropolis–Hastings algorithm. | | End |
|