Hi,
I am using STATA 14 and have a continuous outcome Y, binary variable X1 and binary variable X2. I want to do a simple linear regression like this:
"regress Y X1 X2 X1#X2"
However, there is some missing data in the outcome variable Y and I want to use FIML to deal with that. I tried
"sem Y <- X1 X2 X1#X2, method(mlmv)" and it says interaction is not allowed. Then I tried gsem but the "method" option is not allowed.
Does anyone know how to solve the problem? To summarize, I would like to run regression with interaction, and use FIML to deal with the missing data.
Thanks!
I am using STATA 14 and have a continuous outcome Y, binary variable X1 and binary variable X2. I want to do a simple linear regression like this:
"regress Y X1 X2 X1#X2"
However, there is some missing data in the outcome variable Y and I want to use FIML to deal with that. I tried
"sem Y <- X1 X2 X1#X2, method(mlmv)" and it says interaction is not allowed. Then I tried gsem but the "method" option is not allowed.
Does anyone know how to solve the problem? To summarize, I would like to run regression with interaction, and use FIML to deal with the missing data.
Thanks!
Comment