Learn R Programming

simstandard (version 0.6.3)

get_model_implied_correlations: Return model-implied correlation matrix

Description

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

Usage

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

Run this code
# NOT RUN {
library(simstandard)
# lavaan model
m = "Latent_1 =~ 0.8 * Ob_1 + 0.7 * Ob_2 + 0.4 * Ob_3"

get_model_implied_correlations(m)
# }

Run the code above in your browser using DataLab