Hello everyone,
I had a dependent variable that is income (continuous variable). My independent variables are education (3 categories, reference group is category 1) and centered age in years (no missing). Also, I created an interaction term between education and age: educ2age=education2*age. educ3age=education3*age
Then I applied multiple imputation:
mi set mlong
mi register imputed income education2 education 3 educ2age educ3age
mi impute mvn income education2 education educ2age educ3age=age, add(10)
Then I ran a OLS:
mi estimate: reg income education2 education3 age educ2age educ3age
Then I wanted to create figures for the interactions. That is where I had trouble with. I know I need to use mimrgns cmdmargins and marginsplot, but I do not what else that I need to do.
I hope it makes sense.
Thanks.
I had a dependent variable that is income (continuous variable). My independent variables are education (3 categories, reference group is category 1) and centered age in years (no missing). Also, I created an interaction term between education and age: educ2age=education2*age. educ3age=education3*age
Then I applied multiple imputation:
mi set mlong
mi register imputed income education2 education 3 educ2age educ3age
mi impute mvn income education2 education educ2age educ3age=age, add(10)
Then I ran a OLS:
mi estimate: reg income education2 education3 age educ2age educ3age
Then I wanted to create figures for the interactions. That is where I had trouble with. I know I need to use mimrgns cmdmargins and marginsplot, but I do not what else that I need to do.
I hope it makes sense.
Thanks.
Comment