Interface to bayesplot's
mcmc_pairs
function. Closely
mirrors the functionality of pairs.stanreg
. Remember
not to specify too many paramaters. They will render slowly, and be difficult
to interpret.
# S3 method for epimodel pairs( x, pars = NULL, regex_pars = NULL, par_models = NULL, par_types = NULL, par_groups = NULL, condition = pairs_condition(nuts = "accept_stat__"), ... )
x | A fitted model object returned by |
---|---|
pars | A character vector giving parameter names. |
regex_pars | A character vector of regular expressions to select parameters. If pars is also used, regex_pars is used in conjunction with pars. |
par_models | A character vector that restricts parameters to a subset of
model components. For example, "R" only uses parameters in the transmission model,
"inf" uses parameters in infection model. Strings giving the name of the
response in an observation model (i.e. LHS of the |
par_types | A character vector that restricts parameters based on their type. The vector can include any of "fixed", "autocor", "random", "aux", "latent", or "seeds". The default is c("fixed", "aux", "seeds"), to avoid printing a very large number of parameters. If NULL, all types are used. |
par_groups | A character vector restricting parameters to those used for a subset of regions in which the epidemic is modeled. Defaults to NULL in which case all regions are used. |
condition | Same as |
... | Arguments passed to |
Multiple ggplot
objects in a grid using bayesplot_grid
.