hbl_plot_tau: Plot tau

View source: R/hbl_plot_tau.R

hbl_plot_tauR Documentation

Plot tau

Description

Plot the rep-specific tau parameters of a fitted hierarchical model.

Usage

hbl_plot_tau(mcmc)

Arguments

mcmc

Data frame of posterior samples generated by hbl_mcmc_hierarchical().

Value

A ggplot object

See Also

Other plot: hbl_plot_borrow(), hbl_plot_group()

Examples

if (!identical(Sys.getenv("HBL_TEST", unset = ""), "")) {
set.seed(0)
data <- hbl_sim_independent(n_continuous = 2)$data
tmp <- utils::capture.output(
  suppressWarnings(
    mcmc <- hbl_mcmc_hierarchical(
      data,
      chains = 1,
      warmup = 10,
      iter = 20,
      seed = 0
    )
  )
)
hbl_plot_tau(mcmc)
}

historicalborrowlong documentation built on Sept. 30, 2024, 9:40 a.m.