adaptive.mcmc.cpp | R Documentation |
MCMC which adapts its proposal distribution for faster convergence following: Sherlock, C., Fearnhead, P. and Roberts, G.O. The Random Walk Metrolopois: Linking Theory and Practice Through a Case Study. Statistical Science 25, no.2 (2010): 172-190.
adaptive.mcmc.cpp(lprior, llikelihood, outfun, acceptfun, nburn, initial, nbatch, blen = 1L, verbose = FALSE)
lprior |
A function returning the log prior probability of the parameters |
llikelihood |
A function returning the log likelihood of the parameters given the data |
outfun |
A function that is called for each batch. Can be useful to log certain values. |
acceptfun |
A function that is called whenever a sample is accepted. |
nburn |
Number of iterations of burn in |
initial |
Vector with starting parameter values |
nbatch |
Number of batches to run (number of samples to return) |
blen |
Length of each batch |
verbose |
Output debugging information |
Returns a list with the accepted samples and the corresponding llikelihood values
adaptive.mcmc
For a more flexible R frontend to this function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.