I received this error when trying to run a latent growth curve model:
Error: The expected covariance matrix associated with the FIML objective in model 'MZ' is not of the same length as the dimnames provided by the objective function.
I used the traceback() function to try to determine the error and received the following output:
9: stop(msg, call. = FALSE)
8: updateObjectiveDimnames(.Object, job, model@name, "FIML")
7: genericObjModelConvert(flatObjective, job, model, namespace,
6: genericObjModelConvert(flatObjective, job, model, namespace,
5: translateObjectivesHelper(job, submodel, namespace, flatJob)
4: translateObjectivesHelper(model, model, namespace, flatModel)
3: translateObjectives(model, namespace, flatModel)
2: runHelper(model, frontendStart, intervals, silent, suppressWarnings,
unsafe, checkpoint, useSocket)
I am not sure how to interpret this message, or how to correct the script. Any help would be greatly appreciated! I have attached my script, and can upload my data if that is helpful.