Description Usage Arguments Value
No-U-Turn sampler
1 2 |
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_diag |
Diagonal elements of the mass matrix in HMC. Defaults to ones. |
M_adapt |
Parameter M_adapt in algorithm 6 in the NUTS paper |
delta |
Target acceptance ratio, defaults to 0.5 |
max_treedepth |
Maximum depth of the binary trees constructed by NUTS |
eps |
Starting guess for epsilon |
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.