Hello everyone,
I am looking at a problem about how the birth policy can affect female job opportunities, where the opportunity=0/1, therefore I am using a logit model, which looks like this:
logit opportunity i.gender##i.policy (*)
*represents a series of control variables which exist in this model but is not important in this question.
The problem is, if I want t o know the marginal effect of this issue, I have seen two ways of achieving this:
margins i.gender##i.policy, atmeans
or
margins, dydx (i.gender##i.policy)
I am not sure what is the difference between these two commands, and the second one seems not able to work since the system does not accept interactive terms in the () after dydx which I don't know why.
And another problem is that the marginal results can't seem to be exported by the estout command (or esttab), only the logit results can be exported, which is quite strange.
Hope these can be solved. Thank you very much!
I am looking at a problem about how the birth policy can affect female job opportunities, where the opportunity=0/1, therefore I am using a logit model, which looks like this:
logit opportunity i.gender##i.policy (*)
*represents a series of control variables which exist in this model but is not important in this question.
The problem is, if I want t o know the marginal effect of this issue, I have seen two ways of achieving this:
margins i.gender##i.policy, atmeans
or
margins, dydx (i.gender##i.policy)
I am not sure what is the difference between these two commands, and the second one seems not able to work since the system does not accept interactive terms in the () after dydx which I don't know why.
And another problem is that the marginal results can't seem to be exported by the estout command (or esttab), only the logit results can be exported, which is quite strange.
Hope these can be solved. Thank you very much!
Comment