Dear Statalist,
I have results from clogit estimations and want to compute average marginal effects of both dummy and continuous variables (by one sd around the mean/median). However, I am not sure about the mechanics of the different commands.
1) When I type
margins, dydx(D_DUMMY) predict(pu0)
it yields a different results than
margins, at(D_DUMMY=(0 1)) predict(pu0)
can someone please clarify the differences to me? In a normal logit environment they seem to yield the same results.
2) In my case margins, at(D_DUMMY=(0 1)) predict(pu0)gives levels that are way too high (80% vs 90%) given that the outcome is rather rare within a group. Does this have to do with the fixed effect that is somehow not taken care of in the level's I'm seeing?
I'd be very happy for advise on these two issues!
Best,
Fred
I have results from clogit estimations and want to compute average marginal effects of both dummy and continuous variables (by one sd around the mean/median). However, I am not sure about the mechanics of the different commands.
1) When I type
margins, dydx(D_DUMMY) predict(pu0)
it yields a different results than
margins, at(D_DUMMY=(0 1)) predict(pu0)
can someone please clarify the differences to me? In a normal logit environment they seem to yield the same results.
2) In my case margins, at(D_DUMMY=(0 1)) predict(pu0)gives levels that are way too high (80% vs 90%) given that the outcome is rather rare within a group. Does this have to do with the fixed effect that is somehow not taken care of in the level's I'm seeing?
I'd be very happy for advise on these two issues!
Best,
Fred
Comment