Interactions with 2level random model PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
Message/Author
 patrick sturgis posted on Monday, March 03, 2008 - 2:01 am
I have a two-level model in which 2 between level variables and their interaction influence a categorical outcome (there are also a number of within predictors but no random slopes). I would like to produce a plot of predicted scores to show graphically how the interaction works. Is this possible? the PLOT function only seems to allow plots of sample statistics and I can't see how to run out predicted scores (that I could then plot in another package). thanks for any advice,

Patrick
 Linda K. Muthen posted on Monday, March 03, 2008 - 8:52 am
You can use the DEFINE command to compute predicted scores and then plot them using the PLOT command.
 patrick sturgis posted on Monday, March 03, 2008 - 10:03 am
Dear Linda

Could you give me some more detail about how to use the define command to obtain predicted scores from a 2 level regression. I have read the user manual and define seems to be limited to transforming existing variables. I can't see any mention of predicted scores in the define section. Thanks,

Patrick
 Linda K. Muthen posted on Monday, March 03, 2008 - 10:12 am
You can also create new variables in DEFINE, for example,

ypred = .5 + .4*x1 + .2*x2;

where .5 is the intercept and .4 and .2 are regression slopes.
 patrick sturgis posted on Monday, March 03, 2008 - 11:15 am
thanks, I understand what you mean now. the problem is that one of the variables in the interaction is latent and the outcome is categorical. Is there any procedure to run out a predicted score as part of the model estimation? bw,

Patrick
 Linda K. Muthen posted on Monday, March 03, 2008 - 4:44 pm
I can't think of any way to do this.
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: