Learn R Programming

varian (version 0.2.2)

vmp_plot: 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 varian and extracting the results.
useU
Logical indicating whether to plot the latent intercepts (defaults to TRUE). Must set to FALSE if not available.
plot
Logical whether to plot the results or just return the grob for the plots. Defaults to TRUE.
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.

Examples

Run this code
# 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))

Run the code above in your browser using DataLab