Skip to content

HELP WITH SEM LIBRARY AND WITH THE MODEL'S SPECIFICATION

2 messages · Analisi Dati, John Fox

#
Dear Costantino,
On
values
. . . (many lines elided)
variables?
No. sem() recognizes as latent variables (F1, F2, etc.) those variables that
do not appear in the observed-variable covariance matrix. There are several
examples in ?sem that illustrate this point. Moreover, the latent variables
are not in general simply means of observed variables.
a
By not specifying F1 <-> F2, you imply that the factors F1 and F2 are
uncorrelated. This isn't illogical, but it produces a very restrictive
model. Conversely, specifying F1 <-> F2 causes the covariance of F1 and F2
to be estimated; because you set the variances of the factors to 1, this
covariance would be the factor correlation.
these
That seems to me a reasonably informative error message: The
observed-variable covariance matrix is singular. This could happen, e.g., if
two observed variables are perfectly correlated, if an observed variable had
0 variance, or if there were more observed variables than observations.
That S is singular implies that it is not positive-definite, but because a
non-singular matrix need not be positive-definite, sem() checks for both.
These are the problems that sem() told you to expect.
Without more information, it's not possible to know. You should figure out
why the observed-variable covariance matrix is singular.

I hope this helps,
 John
http://www.R-project.org/posting-guide.html