2-1-1 path analysis model with random... PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
Message/Author
 Ina Choi posted on Monday, December 18, 2017 - 4:47 pm
I am analyzing a multilevel path analysis model with one dependent variable (binary outcome), one mediator, and four independent variables. Out of four independent variables, TA and TLim are on the Between level. The dependent variable (Foreco), the mediator (TRTsec), and two other independent variables, (WL, PoS) are on the Within level. If possible, I would like to have all the variables have radome slopes except for PoS.

In the output, I see two warnings below.
“Between-level variables cannot be used on the within level. Between-level variable used: TRTSEC”
“Between-level variables cannot be used in random slope definitions on the within level. Between-level variable used: TRTSEC”

It would be really helpful if you can take a look and let me know what has to be fixed or added in the syntax.

Thank you in advance!
 Ina Choi posted on Monday, December 18, 2017 - 4:49 pm
I've attached the syntax I was developing here because of the size limit.

DATA: FILE = DataMPlus3.txt;
USEVARIABLES = PID WL PoS TLim TA FoReco TRTsec;
CLUSTER = PID;
WITHIN = WL PoS;
BETWEEN = TA TLim TRTsec;
Categorical = FoReco;
ANALYSIS: TYPE = TWOLEVEL RANDOM ;
MODEL: %WITHIN%
TRTsec FoReco;
B1M | TRTsec ON WL;
B2M | TRTsec ON PoS;
B1 | FoReco ON TRTsec;
B2 | FoReco ON WL;
B3 | FoReco ON PoS
%BETWEEN%
TA TLim TRTsec FoReco;
TRTsec ON TA(d1);
TRTsec ON TLim(d2);
FoReco ON TA(d3);
FoReco ON TLim(d4);
FoReco ON TRTsec(d5);
[B1M](a11);
[B2M](a12);
[B1](c11);
[B2](c12);
[B3](c13);
B1M-B2M@0;
B1-B3@0;
B1 WITH TA TLim TRTsec FoReco;
MODEL CONSTRAINT: NEW (dirTA indTA dirTLim indTLim);
dirTA = d3;
indTA = d1*(c11 + d5);
dirTLim= d4;
indTLim= d2*(c11 + d5);
OUTPUT: TECH1;
 Bengt O. Muthen posted on Tuesday, December 19, 2017 - 3:50 pm
We ask that postings be restricted to one window. Longer questions should instead be sent to Support.

Your input says that WL and Pos do not vary on Between. And that TRTsec does not vary on Within. It then does not make sense to say that TRTsec is a function of WL and Pos because if TRTsec was a function of them, it would vary on Within - that is, you have a logical contradiction.

Only if WL and Pos have Between variation can they influence TRTsec through their between-level part of their variation.
 Ina Choi posted on Tuesday, December 19, 2017 - 7:03 pm
Sorry for confusion. I fixed the syntax and but still get the error messages.

USEVARIABLES = PID WL PoS TLim TA FoReco TRTsec;
CLUSTER = PID;
BETWEEN = TA TLim;
WITHIN = WL PoS;
Categorical = FoReco;

ANALYSIS: TYPE = TWOLEVEL RANDOM;

MODEL:
%WITHIN%
B1M | TRTsec ON WL;
B2M | TRTsec ON PoS;
B1 | FoReco ON TRTsec;
B2 | FoReco ON WL;
FoReco ON PoS (B3);

%BETWEEN%
TA TLim TRTsec FoReco;
TRTsec ON TA(d1);
TRTsec ON TLim(d2);
FoReco ON TA(d3);
FoReco ON TLim(d4);
FoReco ON TRTsec(d5);
[B1M](a11);
[B2M](a12);
[B1](c11);
[B2](c12);
B1 WITH TA TLim TRTsec FoReco;

Error msg
"Observed variable on the right-hand side of a between-level ON statement must be a BETWEEN variable. Problem with: TRTSEC"
 Bengt O. Muthen posted on Wednesday, December 20, 2017 - 12:33 pm
Your statement

FoReco ON TRTsec(d5);

requires TRTsec to be a between-level variable. And if you declare it as such you cannot also have the Within statements

B1M | TRTsec ON WL;
B2M | TRTsec ON PoS;

like we discussed before.

Please read my first answer again.
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: