Question of unknown variable after de... PreviousNext
Mplus Discussion > Structural Equation Modeling >
Message/Author
 Gabriella Fu posted on Monday, October 29, 2018 - 11:51 pm
Dear Sir,

I want to use Mplus to calculate composite reliability of a bi-factor model. I define the total score of the test, but Mplus told me it is a unknown variable. I would like to check what is wrong with the codes.

INPUT INSTRUCTIONS

TITLE:
S2_BI-CFAconditionID10repID123;
DATA:
FILE IS S2_10_123.dat;
VARIABLE:
NAMES ARE x1-x16;
DEFINE:
VAR=SUM(x1-x16);
MODEL:
g@1;
f1-f2@1;
f1 by x1-x8*(l1-l8);
f2 by x9-x16*(l9-l16);
g by x1-x16*(l17-l32);
g WITH f1-f2@0;
f1 WITH f2@0;
VAR(VARX);
MODEL CONSTRAINT: New(U C1 C2 CR CR1 CR2 CR3 V1);
V1=VARX*1;
U=l17+l18+l19+l20+l21+l22+l23+l24+l25+l26+l27+l28+l29+l30+l31+l32;
C1=l1+l2+l3+l4+l5+l6+l7+l8;
C2=l9+l10+l11+l12+l13+l14+l15+l16;
CR=U**2/V1;
CR1=C1**2/V1;
CR2=C2**2/V1;
CR3=CR+CR1+CR2;
OUTPUT: STDY TECH1 CINTERVAL;

*** ERROR in MODEL command
Unknown variables: VAR
in line: VAR
 Bengt O. Muthen posted on Tuesday, October 30, 2018 - 5:14 pm
Say:

Usev = x1-x16 var;
 Gabriella Fu posted on Tuesday, October 30, 2018 - 7:00 pm
Thank you. It works well.
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: