Provides a quick visual summary of an AME model fit, focusing on key convergence diagnostics. For more detailed diagnostics, use the specific plotting functions: trace_plot(), gof_plot(), ab_plot(), and uv_plot().
Usage
# S3 method for class 'ame'
plot(x, ...)Details
By default, this function simply calls trace_plot() to show MCMC trace plots and posterior distributions for key parameters. This provides a quick check of model convergence and mixing.
For more detailed visualizations, use the specialized functions:
- trace_plot()
MCMC diagnostics and posterior distributions
- gof_plot()
Goodness-of-fit assessment
- ab_plot()
Additive sender/receiver effects
- uv_plot()
Multiplicative latent factors
Examples
# \donttest{
# Fit an AME model
data(YX_nrm)
# chains = 1 keeps the example short; the default runs two chains and compares them
fit <- ame(YX_nrm$Y, Xdyad = YX_nrm$X, R = 2, gof = TRUE,
nscan = 100, burn = 10, odens = 1, verbose = FALSE, chains = 1)
# Quick diagnostic plot (shows trace plots)
plot(fit)
# }