trace_plot: Create a trace plot for a single desired node

Description Usage Arguments Note

View source: R/trace_plot.R

Description

Create a trace plot for a single desired node

Usage

1
trace_plot(post, param, keep_percent = 1)

Arguments

post

A mcmc.list object.

param

A regular expression that matches a single element in the model. E.g., "b0[1]", not "b0". See match_params().

keep_percent

A numeric vector of length == 1 and on the range (0,1]. Percent of samples you'd like to keep for trace plotting and passed to post_thin().

Note

If saving as a pdf file, these files can get very large with many samples and render slowly. The keep_percent argument is intended to help with this by thinning the chains at quasi-evenly spaced intervals. This is not a function users will generally use directly. Call diag_plots() instead.


postpack documentation built on June 3, 2021, 1:07 a.m.