Description Usage Arguments Value
No-U-Turn sampler
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
theta |
Initial value for the parameters |
f |
log-likelihood function (up to a constant) |
grad_f |
the gradient of the log-likelihood function |
n_iter |
Number of MCMC iterations |
M |
the HMC mass matrix. Defaults to |
M_adapt |
Parameter M_adapt in algorithm 6 in the NUTS paper |
M_chol |
The cholesky decomposition of |
M_inv |
The inverse of |
delta |
Target acceptance ratio, defaults to 0.5 |
max_treedepth |
Maximum depth of the binary trees constructed by NUTS |
eps |
Starting guess for epsilon |
find |
Allow NUTS to make a better guess at epsilon? Default |
verbose |
logical. Message diagnostic info each iteration? Default |
Matrix with the trace of sampled parameters. Each mcmc iteration in rows and parameters in columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.