Description Usage Arguments Value
This function implements No-U-Turn Sampler with Dual Averaging. The code is a modified version of algorithm6 in paper. Instead of including samples in burn-in period (m < Madapt), the function generates a sample where samples in the burn-in period are discarded.
1 | NutsDual(theta0, delta, L, M, Madapt)
|
theta0 |
inital state of theta |
delta |
the desired average acceptance probability |
L |
a callable function that returns log probability |
M |
number of samples to generate |
Madapt |
number of iterations |
samples generated by NUTS
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.