proposalfunction1: MCMC proposal function

Description Usage Arguments Value

View source: R/mcmc_functions.R

Description

Proposal function for MCMC random walk, taking random steps of a given size. Requires toUnitScale and fromUnitScale from the mathfuncs package. Random walk may be on a linear or log scale

Usage

1
proposalfunction1(param, param_table, index)

Arguments

param

a vector of the parameters to be explored

param_table

a matrix of flags and bounds that specify how the proposal should be treated. Crucial elements are the 3rd column (lower bound), 4th column (upper bound), 5th column )step size) and 6th column (flag for log proposal)

index

numeric value for the index of the parameter to be moved from the param table and vector

Value

the parameter vector after step


jameshay218/mcmcJH documentation built on May 18, 2019, 11:20 a.m.