View source: R/lAccept.ratio.r
lAccept.ratio | R Documentation |
Logarithm of the acceptance probability
lAccept.ratio(
cur.par,
prop.par,
llh.cur,
lprior.cur,
dat,
likelihood,
proposal,
prior,
Hpar,
MCpar
)
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 |
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.
The log-acceptance probability.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.