gen_default_mcmcPars: generate default MCMC parameters

View source: R/mcmc_helpers.R

gen_default_mcmcParsR Documentation

generate default MCMC parameters

Description

gen_default_mcmcPars supplies some default MCMC parameters.

Usage

gen_default_mcmcPars(
  iterations = 10000,
  popt = 0.44,
  opt_freq = 1000,
  thin = 1,
  adaptive_period = 5000,
  save_block = 100
)

Arguments

iterations

numeric vector of length 1: number of iterations for which to run MCMC (excluding adaptive period)

popt:

numeric vector of length 1: optimum acceptance ratio for adapting step size

opt_freq:

numeric vector of length 1: adjust step size per this many number of iterations during adaptive period

thin:

numeric vector of length 1: save state of chain and parameter values to file every this many iterations

adaptive_period:

numeric vector of length 1: number of iterations for which to adapt MCMC

save_block:

numeric vector of length 1: number of iterations to hold in memory

Details

All arguments are optional (to overwrite defaults)

Value

a named vector with the above elements


ada-w-yan/deltaomicron1 documentation built on June 24, 2022, 5:41 a.m.