[R] Error in structural equation model - "The model has negative degrees of freedom"
sunnyw at hotmail.com
Thu Dec 1 04:07:44 CET 2005
I am running a structural equation model with R using the sem command; am
getting the following error:
"Error in sem.default : The model has negative degrees of freedom = -4"
My model is as follows:
s_model = specify.model()
x1-x6 are observed independent variables, m1 and m2 are the latent variables
and y is the observed dependent variable. I use the raw.moments command for
calculating the covariance matrix, based on a data with 147 observations.
The command that I use is as follows:
s = sem(s_model,S=R,obs.variables=colnames(R),
I would appreciate any help on this; I am new to structural equation models
and realize that I may be making a silly error.
More information about the R-help