View source: R/conjugate_gradients.R
setup_CG_sampler | R Documentation |
Set up conjugate gradient sampler
setup_CG_sampler(mbs, X, sampler, control = CG_control())
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 |
An environment with precomputed quantities and functions for multiplication by A and by an (inverse) preconditioning matrix.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.