Characters after Parentheses PreviousNext
Mplus Discussion > Categorical Data Modeling >
Message/Author
 John D Peipert posted on Tuesday, December 19, 2017 - 10:09 pm
Hi,

I am attempting to run a model examining factorial invariance with categorical data. I am getting an odd error regarding characters after parentheses, and I cannot find an instance of this error in other posts.

Can anyone help spot my syntax error?

Here is the error:

*** ERROR in MODEL command
There should be no extra characters after the right parenthesis of an equality or parameter label.
Problem with the following statement:
y1* (L1)y2 (L2)y3 (L3)y4 (L4)


The abbreviated model statement code is here for reference.

MODEL:
y1 By x1@1;
y2 By x2@1;
y3 By x3@1;
y4 By x4@1;
f1 BY y1*(L1)y2(L2)y3(L3)y4(L4);
f1@1;
[f1@0];
{x1-x4@1};
[y1-y4@0];
y1-y4@0;
[x1$1-x1$4*](T1-T4);
[x2$1-x2$4*](T5-T8);
[x3$1-x3$4*](T9-T12);
[x4$1-x4$4*](T13-T16);
 Bengt O. Muthen posted on Wednesday, December 20, 2017 - 12:30 pm
You are not allowed to give several labels on the same line like that. Instead, say

f1 BY y1-y4*(l1-l4);
 John D Peipert posted on Wednesday, December 20, 2017 - 6:41 pm
Thank you very much for your quick and helpful response.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: