lAccept.ratio {BMAmevt} | R Documentation |
Acceptance probability in the MCMC algorithm.
Description
Logarithm of the acceptance probability
Usage
lAccept.ratio(
cur.par,
prop.par,
llh.cur,
lprior.cur,
dat,
likelihood,
proposal,
prior,
Hpar,
MCpar
)
Arguments
cur.par |
The current parameter in the Markov chain |
prop.par |
The candidate parameter |
dat |
An angular data set, e.g., constructed by
|
likelihood |
The likelihood function.
Should be of type |
proposal |
The proposal function: of type |
prior |
The prior distribution: of type |
Hpar |
A list containing Hyper-parameters to be passed to
|
MCpar |
A list containing MCMC tuning parameters to be
passed to |
Details
lAccept.ratio
is a functional: likelihood,proposal,prior
are user defined functions. Should not be called directly, but through the MCMC sampler posteriorMCMC
generating the posterior.
Value
The log-acceptance probability.