Skip to contents

Generate diagnostic plots for a fitted Bayesian multivariate probit model

Usage

plot_probit_diagnostics(
  fit_obj,
  output_dir,
  experiment_id,
  pathogen,
  max_params = 20L
)

Arguments

fit_obj

Named list returned by fit_bayesian_multivariate_probit().

output_dir

Directory where the PDF will be saved.

experiment_id

Character. Experiment identifier (used in filename and titles).

pathogen

Character. Pathogen name (used in plot titles).

max_params

Integer. Maximum number of parameters shown in trace/rank plots. Defaults to 20. Only beta, tau_*, and lp__ are ever included.

Value

Invisibly returns the path to the saved PDF, or NULL if skipped.