update_tuning_vec: this function updates a vector block of univariate Gaussian...

View source: R/update-tuning.R

update_tuning_vecR Documentation

this function updates a vector block of univariate Gaussian random walk proposal Metropolis-Hastings tuning parameters

Description

this function updates a vector block of univariate Gaussian random walk proposal Metropolis-Hastings tuning parameters

Usage

update_tuning_vec(k, accept, tune)

Arguments

k

is a positive integer that is the current MCMC iteration.

accept

is a vector of positive numbers between 0 and 1 that represents the batch accpetance rate. The target of this adaptive tuning algorithm is an acceptance rate of 0.44.

tune

is a vector of positive numbers that are the univariate Gaussian random walk proposal standard deviation.


jtipton25/pgR documentation built on July 8, 2022, 12:44 a.m.