Learn R Programming

adnuts (version 1.1.2)

plot_sampler_params: Plot adaptation metrics for a fitted model.

Description

Plot adaptation metrics for a fitted model.

Usage

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

Run this code
# NOT RUN {
fit <- readRDS(system.file('examples', 'fit.RDS', package='adnuts'))
plot_sampler_params(fit)
# }

Run the code above in your browser using DataLab