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 - 2: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.
Hi there - I'm having the same problem. Error message says: Undefined variable used in transformation: POSVAL. This error message only appeared in my syntax when I tried to run plots. PosVal was not a problem when I ran the path model (mediation model with 2nd order latent variables and interactions).
Here's an abbreviated syntax. ab is in the usevariables list, and ab is named in the model section: ab (gamma2)
DEFINE: ab = PosVal*SSE;
In model constraint:
!Plot for moderated indirect effect !PosVal-> PA -> CogEng
LOOP(Inter1,-2,2,0.1); PLOT(indirect); indirect = f3*(a3+gamma2*Inter1); PLOT: TYPE = PLOT2;