get_model_implied_correlations: Return model-implied correlation matrix

Description Usage Arguments Value Examples

View source: R/main.R

Description

Function that takes a lavaan model with standardized parameters and returns a model-implied correlation matrix

Usage

1
2
3
4
5
6
7
8
9
get_model_implied_correlations(
  m,
  observed = TRUE,
  latent = FALSE,
  errors = FALSE,
  factor_scores = FALSE,
  composites = FALSE,
  ...
)

Arguments

m

Structural model represented by lavaan syntax or output of sim_standardized_matrices function.

observed

Include observed variables

latent

Include latent variables

errors

Include observed error and latent disturbances variables

factor_scores

Include factor score variables

composites

Include composite variables

...

parameters passed to the 'sim_standardized_matrices' function

Value

A correlation matrix

Examples

1
2
3
4
5
library(simstandard)
# lavaan model
m = "Latent_1 =~ 0.8 * Ob_1 + 0.7 * Ob_2 + 0.4 * Ob_3"

get_model_implied_correlations(m)

simstandard documentation built on May 8, 2021, 1:06 a.m.