Description Usage Arguments Value References See Also
The function computes the marginal likelihood by importance sampling and from user-written functions.
1 |
logfun |
The logarithm of the objective function |
nsim |
The number of draws form the importance density |
theta.hat |
The center of the proposal |
tune |
A tunning value to be used to achieve the desired efficiency |
V |
The scale matrix of the importance density |
df |
The degrees of freedom of the importance density |
verbose |
A switch which determines whether or not the progress of the sampler is printed to the screen. If verbose is greater than 0 the iteration number, and importance sampling approximation are sent to the screen every |
double, the logarithm of the marginal likelihood
Chib S. & Jeliazikov I. (2001). Marginal likelihood from the Metropolis-Hastings output. Journal of the American Statistical Association, 46, 270–281.
Robert C. P. & Casella G. (2004). Monte Carlo Statistical Methods. 2nd Edition. New York: Springer.
nlpost_gomp
, nlpost_bod2
for examples; MHmcmc
, ChibML
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.