plot_mcmc | R Documentation |
Provides graphical diagnostics of the random effect posterior draws from the (best) model. Availabile diagnostics include the sample path, histograms, cummulative sums, and autocorrelation.
plot_mcmc(
object,
plots = "sample.path",
grps = "all",
vars = "all",
numeric_grp_order = FALSE,
bin_width = NULL
)
object |
an object of class |
plots |
a character string or a vector of character strings specifying which graphical diagnostics to provide. Options include a sample path plot (default, "sample.path"), autocorrelation plots ("autocorr"), histograms ("histogram"), cumulative sum plots ("cumsum"), and all four possible plot options ("all"). While the "all" option will produce all four possible plots, subsets of the types of plots (e.g. sample path plots and autocorrelation plots only) can be specified with a vector of the relevant character strings (e.g. c("sample.path","autocorr")) |
grps |
a character string or a vector of character strings specifying which groups should have diagnostics provided. The names of the groups match the input group factor levels. Default is set to 'all' for all groups. |
vars |
a character string or a vector of character strings specifying which variables
should have diagnostics provided. Default is set to
'all', which picks all variables with non-zero random effects.
Tip: can find the names of the random effect variables in
the output sigma matrix found in the |
numeric_grp_order |
if TRUE, specifies that the groups factor should be converted to numeric values. This option could be used to ensure that the organization of the groups is in the proper numeric order (e.g. groups with levels 1-10 are ordered 1-10, not 1, 10, 2-9). |
bin_width |
optional binwidth argument for |
a list of ggplot graphics, each faceted by group and random effect variable.
Type of plots specified in the plots
argument.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.