Hi Statalist,
I am trying to estimate person-specific marginal effects for a structural form equation, and I need a way to save the marginal effects that Stata creates for each person when you run the following command:
I was hoping that I could save the marginal effects that Stata computes for each person into a variable so that I could then multiply these marginal effects by the marginal effects from a second model, and then take the mean of those marginal effects. I read online that this may be a possible solution:
Is this going to save my person-specific marginal effects into a variable? If not, is Stata able to do something like this? I assume they are calculated before calculating the average marginal effects, but I was wondering if there was a way to actually save them into a variable.
Thanks!
I am trying to estimate person-specific marginal effects for a structural form equation, and I need a way to save the marginal effects that Stata creates for each person when you run the following command:
Code:
xtpoisson DEPENDENT INDEPENDENT margins, dydx(INDEPENDENT)
Code:
xtpoisson DEPENDENT INDEPENDENT margins, dydx(INDEPENDENT) post estimates store margins1
Thanks!