Learn R Programming

mcmcsae (version 0.7.4)

sampler_control: Set computational options for the sampling algorithms

Description

Set computational options for the sampling algorithms

Usage

sampler_control(add.outer.R = NULL, recompute.e = TRUE, CG = NULL)

Value

A list with specified computational options that is used to set up the sampling functions.

Arguments

add.outer.R

whether to add the outer product of the constraint matrix for a better conditioned solve system for blocks. This is done by default when using blocked Gibbs sampling for blocks with constraints.

recompute.e

when FALSE, residuals or linear predictors are only computed at the start of the simulation. This may give a modest speedup but in some cases may be less accurate due to round-off error accumulation. Default is TRUE.

CG

use a conjugate gradient iterative algorithm instead of Cholesky updates for sampling the model's coefficients. This must be a list with possible components max.it, stop.criterion, verbose, preconditioner and scale. See the help for function CG_control, which can be used to specify these options. Conjugate gradient sampling is currently an experimental feature that can be used for blocked Gibbs sampling but with some limitations.