generateSigma: Generate the indicator correlation matrix

Description Usage Arguments Value

View source: R/generateSigma.R

Description

Generates the indicator correlation matrix based on the parameters of a structural equation model in lavaan model syntax.

Usage

1
2
3
4
generateSigma(
 .model                    = NULL,
 .handle_negative_definite = c("stop", "drop", "set_NA")
 )

Arguments

.model

A model generated using generatecSEMModel().

.handle_negative_definite

Character string. How should negative definite indicator correlation matrices be handled? One of "stop", "drop" or "set_NA" in which case an NA is produced. Defaults to "stop".

Value

A K by K matrix of indicator correlations. K is the number of indicators


M-E-Rademaker/cSEM.DGP documentation built on Feb. 12, 2020, 6:36 a.m.