I'm using stata 14.1. The problem is that I want to store the marginal effects of a probit model and I want to store the mean of the dependent variable "stunted" ,but when I do the following it returns the mean of something that is stored in the "ereturn list" of margins. I don't know how to recover and store the actual mean of the variable "stunted" after obtaining the marginal effects.
Code:
eststo clear xtprobit stunted c1 c2 c3 c4 eststo: margins, dydx(c1 c2) post estadd ysumm,mean
Comment