vmp_plot {varian} | R Documentation |
Plot the posterior distributions of the focal parameters from a VM model
Description
This function plots the univariate and bivariate (if applicable) distributions of the focal (alpha) parameters from a Variability Model where the variability is used as a predictor in a second-stage model. The latent variability estimates are referred to as “Sigma” and, if used, the latent intercepts are referred to as “U”.
Usage
vmp_plot(alpha, useU = TRUE, plot = TRUE, digits = 3, ...)
Arguments
alpha |
Results from running |
useU |
Logical indicating whether to plot the latent intercepts
(defaults to |
plot |
Logical whether to plot the results or just return the grob
for the plots. Defaults to |
digits |
Integer indicating how many digits should be used for displaying p-values |
... |
Additional arguments (not currently used) |
Value
A list containing the Combined
and the Individual
plot objects.
Author(s)
Joshua F. Wiley <josh@elkhartgroup.com>
Examples
# Using made up data because the real models take a long time to run
set.seed(1234) # make reproducible
vmp_plot(matrix(rnorm(1000), ncol = 2))