vbplot: A Function For Performing and Visualizing a van Bork et al....

Description Usage Arguments Examples

View source: R/vbplot.R

Description

This produces an APA-formatted ggplot of the distributions of simulation results under the UFM and SNM, with a vertical line corresponding to the observed data

Usage

1
vbplot(df, n, seed = 123)

Arguments

df

input data frame consisting of variables in the measurement model

n

input number of simulated samples to use if specifying latent or network model. If comparing ufm and snm, the same n should be specified.

seed

input number to set random seed for simulations. Defaults to 705.

Examples

1
plot <- vbplot(df, n = 10000, seed = 123)

jsakaluk/psyscores documentation built on Dec. 16, 2021, 6:50 p.m.