This function creates a 'semPlotModel' object using matrices of the RAM model (McArdle & McDonald, 1984).
ramModel(A, S, F, manNames, latNames, Names, ObsCovs, ImpCovs, modelLabels = FALSE)
Specification of the assymmetric (A) matrix, see details.
Specification of the symmetric (S) matrix, see details.
Specification of the filter (F) matrix, see details.
Character vector of the manifest names.
Character vector of the latent names.
Character vector containing all names. Defaults to c(manNames,latNames)
.
Observed covariancem matrix.
Implied covariancem matrix.
Logical. If TRUE
all latents are named l1, l2, ...
and all manifests m1, m2, ...
A 'semPlotModel' object.
The matrices can be assigned in various ways, depending on the amount of information that should be stored in the resulting model.
First, the a single matrix can be used. The values of this matrix correspond to the parameter estimates in the 'semPlotModel'. For multiple groups, a list of such matrices can be used.
to store more information, a named list of multiple matrices of the same dimensions can be used. Included in this list can be the following (but only estimates is nessesary):
est
Parameter estimates
std
standardized parameter estimates
par
Parameter numbers. 0 indicating fixed variables and parameters with the same parameter number are constrained to be equal.
fixed
Logical matrix indicating if the parameter is fixed.
If std
is missing the function tries to compute standardized solutions (not yet working for intercepts). If fixed
is missing it is computed from the par
matrix. For multiple groups, a list containing such lists can be used.
The number of variables is extracted from the assigned matrices.
McArdle, J. J., & McDonald, R. P. (1984). Some algebraic properties of the reticular action model for moment structures. British Journal of Mathematical and Statistical Psychology, 37(2), 234-251.