Hello,

I use stata 14.2

I am working on a survey with a set of categorical variables that each have 3 possible outcomes (the man, the woman, both equally). In the following code, I will use one of these variables, called fc07n.

I want to run a mlogit of these variables with several explanatory variables (such as income, diploma, etc). I also want to include in my model the interaction effect of two variables, namely gen & d_dipf.

So I have:

I would like to have get the predicted probabilities for each of these variables, and the interaction, on an excel sheet.

I thought doing :

would work, but I have two issues:

1.the predicted probabilities do not appear on the excel sheet, but rather the regression coefficients, which is not what I want.

2.the interaction effects are not showing on my spreadsheet. How so ?

I am quite stuck with this, so I would be grateful if someone here had an solution for me !!

Thanks a lot !

I use stata 14.2

I am working on a survey with a set of categorical variables that each have 3 possible outcomes (the man, the woman, both equally). In the following code, I will use one of these variables, called fc07n.

I want to run a mlogit of these variables with several explanatory variables (such as income, diploma, etc). I also want to include in my model the interaction effect of two variables, namely gen & d_dipf.

So I have:

Code:

svyset [pweight=pondefcomp7] set more off mac def ego "c.age_07 c.revenu i.q1comp" mac def couple "i.d_empl i.d_dip ib5.d_dipf ib2.d_pcsf i.comprev" mac def background "ib2.d_socper i.d_merfoy i.orgeo4" mac def family "ib1.d_enf i.d_jeunenf" mac def interaction "ib5.d_dipf#i.gen"

I thought doing :

Code:

forvalues i=1/3 { svy: mlogit fc07n $ego $couple $background $family $interaction i.gen if champ==1, base(3) margins, dydx(*) predict(outcome(`i')) post outreg2 using "taches7.xls", label excel bdec(3) stat (coef) append }

1.the predicted probabilities do not appear on the excel sheet, but rather the regression coefficients, which is not what I want.

2.the interaction effects are not showing on my spreadsheet. How so ?

I am quite stuck with this, so I would be grateful if someone here had an solution for me !!

Thanks a lot !

## Comment