I use the dataset margex and the command margins in order to replicate an example I saw in a paper. I use:
Code:
webuse margex gen female=(sex==1) logit outcome c-age##i.female
Array
Then I use:
Code:
margins, dydx(age female) post
Array
Then I try to re-estimate the model above using:
Code:
gen femage=female*age logit age female femage
Code:
margins, dydx(age female)
Array
Why do I have such a difference in the estimation of margins? I have a very vague idea about a thread in this forum regarding such a difference, but I might be wrong. Any suggestion?
Thanks in advance
Dario
0 Response to logit and margins
Post a Comment