Description Usage Arguments Value
Two-coin algorithm: implements the Portkey algorithm for beta = 1.
1 |
prop |
The proposed value in the MCMC step |
curr |
The current value in the MCMC step |
pf |
A function that produces a Bern(p) realization, with argument |
Cprop |
Upper bound for the target density at proposed value |
Ccurr |
Upper bound for the target density current value |
... |
additional arguments that go into |
a variable x
which is either curr
or prop
and integer loops
that returns the number
of loops the Bernoulli factory took
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.