Learn R Programming

stim (version 1.0.0)

modelImpliedEq: Get the model implied symbolic equations for the auto-regressive effects and the covariances between the phantom variables

Description

Get the model implied symbolic equations for the auto-regressive effects and the covariances between the phantom variables

Usage

modelImpliedEq(S, blueprint, stability, residualcov)

Value

A list of 1) A character vector with the model implied equations for the autoregressive effects and the phantom variable covariances, and 2) the symbolic psi and covariance matrices that were used to get the model implied equations.

Arguments

S

Sample covariance matrix

blueprint

A character matrix that specifies which effects to estimate and which effects to constrain to a non-zero value

stability

A named object that contains stability information for each variable in the model.

residualcov

A list with both the lavaan syntax for the residual covariance and a dataframe with the variable names