Plot adaptation metrics for a fitted model.

plot_sampler_params(fit, plot = TRUE)

Arguments

fit

A fitted object returned by sample_admb.

plot

Whether to plot the results

Value

Prints and invisibly returns a ggplot object

Details

This utility function quickly plots the adaptation output of NUTS chains.

Examples

fit <- readRDS(system.file('examples', 'fit.RDS', package='adnuts')) plot_sampler_params(fit)