Description Usage Arguments Value
View source: R/mcmc_functions.R
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
1 | proposalfunction1(param, param_table, index)
|
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 |
the parameter vector after step
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.