plot_mvgam_randomeffects function

Plot random effect terms from mvgam models

Plot random effect terms from mvgam models

This function plots posterior empirical quantiles for random effect smooths (bs = re)

plot_mvgam_randomeffects(object, trend_effects = FALSE)

Arguments

  • object: list object of class mvgam. See mvgam()
  • trend_effects: logical. If TRUE and a trend_formula was used in model fitting, terms from the trend (i.e. process) model will be plotted

Returns

A base R graphics plot

Details

Posterior empirical quantiles of random effect coefficient estimates (on the link scale) are calculated and visualised as ribbon plots. Labels for coefficients are taken from the levels of the original factor variable that was used to specify the smooth in the model's formula