Message/Author 

Anonymous posted on Wednesday, October 12, 2005  5:37 pm



Is it possible to have binary (0 and 1) variables at level2 in multilevel sem? 


Yes. This is possible. 


I am using a dichotomous outcome (yes/no DSMIV diagnosis) as 2 dependent variables in a 2 level model. When I include the command "categorical are XX XX", I get an error message "RECIPROCAL INTERACTION PROBLEM". Without the "categorical" statement, the model runs fine. Is it necessary to label dichotomous variables as categorical in multilevel modeling? 


Are you turning one yes/no variable into two variables? It sounds that way but maybe I misunderstand. If so, this is not necessary. Use only one variable. This variable should be placed on the CATEGORICAL list. 


Thank you for your response. I will list the 2 variables (they are two separate variables, each with a possibility of 0 for does not meet criteria and 1 for meets diagnostic criteria) as categorical. Now, is there anyway to amend the problem of "RECIPROCAL INTERACTION" with my data  or and I just not able to run this model? Thank you. 


Given that you have two variables, you need to send the input, data, output and your license number to support@statmodel.com so I can see what the reciprocal interaction message is coming from. 


Is there a solution to this problem? I have a model with a dichotomous independent variable, one dichotomous mediating variable, three continuous mediating variables and one dichotomous dependent variable. I have listed the dichotomous mediating and dependent variables in the CATEGORICAL list. Is there something that I should do differently so that I don't get the 'RECIPROCAL INTERACTION" message? 


Which version of Mplus are you using? 


It appears to be version 4. I am a doctoral student using the school's program. Would using the newer version eliminate my problem? 


Your problem should fit in the Demo. Try it there. I think a newer version would solve the problem. 


Okay I will thank you so much! 


Dr. Muthen, I downloaded the demo and tried it and I am still getting the "RECIPROCAL INTERACTION PROBLEM" message, is there something else that could cause me to get the message? 


Then you would need to send the input, data, and your license number to support@statmodel.com. 

Tyler Burch posted on Friday, December 04, 2015  12:17 pm



First, thank you so much for what you do to help the discipline. I am trying to run a mediation analysis using a level 122 configuration. I run the following syntax as suggested by Preacher, although I change the Estimator to WLSMV because my outcome is dichotomous. This does not work as the Estimator defaults to ML. I am wondering if there is a way to run a mediation analysis using a 122 configuration with a dichotomous outcome. Thanks for your help! ANALYSIS: TYPE IS TWOLEVEL RANDOM; Estimator = WLSMV; MODEL: ! model specification follows %WITHIN% ! Model for Within effects follows aWFCIND; ! estimate Level1 (residual) variance for x %BETWEEN% ! Model for Between effects follows bFAMSAT SEPCDmx; ! estimate Level2 (residual) variances for m and y bFAMSAT ON aWFCIND(a); ! regress m on x, call the slope "a" SEPCDmx ON bFAMSAT(b); ! regress y on m, call the slope "b" SEPCDmx ON aWFCIND; ! regress y on x MODEL CONSTRAINT: ! section for computing indirect effect NEW(indb); ! name the indirect effect indb=a*b; ! compute the Between indirect effect OUTPUT: TECH1 TECH8 CINTERVAL; ! request parameter specifications, starting values, ! optimization history, and confidence intervals for all effects 


ML can handle a binary outcome. The indirect effect is still for the continuous latent response variable behind the binary outcome. You don't need Type = Random. You can also use Bayes estimation. 

Back to top 