Description Usage Arguments Value Examples
This function calculates alpha, the acceptance probability of a MH step, for a random walk or similar where the proposal is symmetric so cancels and one is left with a ratio of likelihoods.
1 | MH_accept(llh, llh.prime)
|
llh |
The value of the log-likelihood with the current value of the paramter in question. |
llh.prime |
The value of the log-likelihood with the newly drawn value of the paramter in question. |
Returns the min(1, ratio of likelihoods).
1 | MH_accept(llh, llh.prime)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.