Learn R Programming

mcmcsae (version 0.7.4)

CG_control: Set options for the conjugate gradient (CG) sampler

Description

Set options for the conjugate gradient (CG) sampler

Usage

CG_control(
  max.it = NULL,
  stop.criterion = NULL,
  preconditioner = c("GMRF", "GMRF2", "GMRF3", "identity"),
  scale = 1,
  verbose = FALSE
)

Value

A list of options used by the conjugate gradients algorithm.

Arguments

max.it

maximum number of CG iterations.

stop.criterion

total squared error stop criterion for the CG algorithm.

preconditioner

one of "GMRF", "GMRF2", "GMRF3" and "identity".

scale

scale parameter; only used by the "GMRF3" preconditioner.

verbose

whether diagnostic information about the CG sampler is shown.