View source: R/proposal_theta.R
univ_proposal | R Documentation |
Proposal function for MCMC random walk, taking random steps of a given size.
univ_proposal(
values,
lower_bounds,
upper_bounds,
steps,
index,
gaussian_proposal = TRUE
)
values |
a vector of the parameters to be explored |
lower_bounds |
a vector of the low allowable bounds for the proposal |
upper_bounds |
a vector of the upper allowable bounds for the proposal |
steps |
a vector of step sizes for the proposal |
index |
numeric value for the index of the parameter to be moved from the param table and vector |
gaussian_proposal |
if TRUE, then samples moves from a Gaussian distribution centered around the current value |
the parameter vector after step
Other proposals:
inf_hist_swap_phi()
,
inf_hist_swap()
,
infection_history_symmetric()
,
mvr_proposal()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.