setup_CG_sampler {mcmcsae} | R Documentation |
Set up conjugate gradient sampler
Description
Set up conjugate gradient sampler
Usage
setup_CG_sampler(mbs, X, sampler, control = CG_control())
Arguments
mbs |
block component containing several model components. |
X |
design matrix. |
sampler |
sampler object as created by |
control |
a list of options for the conjugate gradient algorithm that can be passed
using function |
Value
An environment with precomputed quantities and functions for multiplication by A and by an (inverse) preconditioning matrix.
References
A. Nishimura and M.A. Suchard (2022). Prior-preconditioned conjugate gradient method for accelerated Gibbs sampling in "large n, large p" Bayesian sparse regression. Journal of the American Statistical Association, 1-14.
[Package mcmcsae version 0.7.8 Index]