genModelString {semPower} | R Documentation |
genModelString
Description
Creates lavaan
model strings from model matrices.
Usage
genModelString(
Lambda = NULL,
Phi = NULL,
Beta = NULL,
Psi = NULL,
Theta = NULL,
tau = NULL,
Alpha = NULL,
useReferenceIndicator = !is.null(Beta),
metricInvariance = NULL,
nGroups = 1
)
Arguments
Lambda |
Factor loading matrix. |
Phi |
Factor correlation (or covariance) matrix. If |
Beta |
Regression slopes between latent variables (all-y notation). |
Psi |
Variance-covariance matrix of latent residuals when |
Theta |
Variance-covariance matrix of manifest residuals. If |
tau |
Intercepts. If |
Alpha |
Factor means. If |
useReferenceIndicator |
Whether to identify factors in accompanying model strings by a reference indicator ( |
metricInvariance |
A list containing the factor indices for which the accompanying model strings should apply metric invariance labels, e.g. |
nGroups |
(defaults to 1) If > 1 and |
Value
A list containing the following lavaan
model strings:
modelPop |
population model |
modelTrue |
"true" analysis model freely estimating all non-zero parameters. |
modelTrueCFA |
similar to |