Plot acceptance diagnostics across metrics and models
Source:R/plot-diagnostics.R
plot_acceptance_diagnostics.RdPlot acceptance diagnostics across metrics and models
Usage
plot_acceptance_diagnostics(
object,
metrics = NULL,
models = NULL,
show_flags = TRUE,
preset = c("default", "paper", "slides"),
base_size = 11,
base_family = "",
title = NULL,
subtitle = NULL,
caption = NULL,
...
)Arguments
- object
A tidy acceptance-diagnostics table, or a
PosteriorBSVARSIGNobject that can be converted withacceptance_diagnostics().- metrics
Optional metric filter.
- models
Optional model filter.
- show_flags
If
TRUE, highlight flagged diagnostics in a different marker.- preset
One of
"default","paper", or"slides".- base_size
Base font size.
- base_family
Base font family.
- title
Optional plot title.
- subtitle
Optional plot subtitle.
- caption
Optional plot caption.
- ...
Additional arguments passed to
acceptance_diagnostics()whenobjectis not already a diagnostics table.
Examples
# \donttest{
data(optimism, package = "bsvarSIGNs")
sign_irf <- matrix(c(1, rep(NA, 3)), 2, 2)
spec_s <- suppressMessages(
bsvarSIGNs::specify_bsvarSIGN$new(optimism[, 1:2], p = 1,
sign_irf = sign_irf)
)
post_s <- bsvars::estimate(spec_s, S = 5, show_progress = FALSE)
p <- plot_acceptance_diagnostics(post_s)
# }