Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65623

Storing Person-Specific Marginal Effects in a Variable?

$
0
0
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:
Code:
xtpoisson DEPENDENT INDEPENDENT
margins, dydx(INDEPENDENT)
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:
Code:
xtpoisson DEPENDENT INDEPENDENT
margins, dydx(INDEPENDENT) post
estimates store margins1
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!

Viewing all articles
Browse latest Browse all 65623

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>