Description Usage Arguments Value
Internal. Performs Metropolis Hastings steps for internal MCMC procedure. lpost_old/lpost_new are log-posteriors at theta_old/theta_new
1 | mhStep(theta_old, theta_new, lpost_old, lpost_new, lq_new, lq_old)
|
theta_old |
old proposal parameter value |
theta_new |
new proposal parameter value |
lpost_old |
old log posterior |
lpost_new |
new log posterior |
lq_new |
log q(theta_new|theta_old) the proposal log-densities |
lq_old |
log q(theta_old|theta_new) the proposal log-densities |
A list of the new theta accepted value, or the old value if rejected and an acceptance indicator.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.