pairs.mvgam {mvgam} | R Documentation |
Create a matrix of output plots from a mvgam
object
Description
A pairs
method that is customized for MCMC output.
Usage
## S3 method for class 'mvgam'
pairs(x, variable = NULL, regex = FALSE, use_alias = TRUE, ...)
Arguments
x |
An object of class |
variable |
Names of the variables (parameters) to plot, as given by a
character vector or a regular expression (if |
regex |
Logical; Indicates whether |
use_alias |
Logical. If more informative names for parameters are available
(i.e. for beta coefficients |
... |
Further arguments to be passed to
|
Details
For a detailed description see
mcmc_pairs
.
Value
Plottable objects whose classes depend on the arguments supplied.
See mcmc_pairs
for details.
Examples
simdat <- sim_mvgam(n_series = 1, trend_model = 'AR1')
mod <- mvgam(y ~ s(season, bs = 'cc'),
trend_model = AR(),
noncentred = TRUE,
data = simdat$data_train,
chains = 2)
pairs(mod)
pairs(mod, variable = c('ar1', 'sigma'), regex = TRUE)