Dear All,

I think this point was addessed in the forum but I was not able to find anything. Suppose I have the following:

Code:
webuse margex, clear
generate female=(sex==1)
generate agefem=age*female

logit outcome c.age##i.female, nolog
margins, dydx(age) at(female=(0 1)) post

logit outcome age female agefem
margins, dydx(age) at(female=(0 1)) post
Why the estimation of marginal effect changes slightly if i use factor notation instead of constructing the interaction term manually?

Thanks for your help.

Best

Dario