![[Experimental]](figures/lifecycle-experimental.svg)
Convenience wrapper around mcmc that selects the
No-U-Turn Sampler (NUTS).
Usage
nuts(model, n_samples = 1000L, warmup = 1000L, chains = 4L, ...)
Arguments
- model
A gretaR_model object created by model.
- n_samples
Number of post-warmup samples per chain (default 1000).
- warmup
Number of warmup (adaptation) iterations per chain (default 1000).
- chains
Number of independent chains (default 4).
- ...
Additional arguments passed to mcmc.
Value
A gretaR_fit object.
Examples
if (FALSE) { # \dontrun{
m <- model(normal(0, 1))
fit <- nuts(m, n_samples = 500, warmup = 500)
coef(fit)
} # }