Linda, I continue to receive this error message Undefined variable used in transfromation: ACOM. I am using Preacher's mplus code for a moderated mediator and I've defined my new variable (AcomXJemb), listed at the end of my USERVARIABLES list, but I continue to receive the error.
*** ERROR Undefined variable used in transformation: ACOM
Here is an abbreviated syntax:
USEVARIABLE ARE (a list of all my items plus the interaction variable listed below) AcomxJemb; Missing = all(-99);
DEFINE: AcomxJemb = Acom*jemb;
ANALYSIS: bootstrap = 5000;
model: Factor1 by TransF1 TransF2 TransF6 TransF9 TransF11 TransF12 TransF13 TransF14 TransF16; Jemb by JembL58 JembL60 JembL61 JembL62; Acom by AcomL64 AcomL66 AcomL68; TurnO by TurnOL69 TurnOL71 TurnOL72 TurnOL73; JSB by JSBL75 JSBL76 JSBL77 JSBL78 JSBL79;
JSB on Acom (b1) Factor1 Jemb AcomxJemb (b3); Acom on Factor1 (a1); Jemb with Acom; AcomXJemb with Acom;
MODEL CONSTRAINT: new (ind wmodval); wmodval = 3.75; ind= a1*(b1+b3*wmodval);
output: cinterval (bcbootstrap);
Any assistance you could offer, would be great. Thanks, Janelle
Minji Yang posted on Tuesday, April 22, 2014 - 8:12 pm
Hello, I am trying to run a moderation and used the DEFINE command to define the interactions, included them after the original variables in the USEVARIABLES list as well as included them in the MODEL command to regress onto the dependent variable. However, I get the ERROR: Undefined variable used in transformation.