title: How do you store marginal effects using margins command in Stata?
body: <p>I'm estimating a regular <code>probit</code> model in Stata and using the <code>margins</code> command to calculate the marginal effects. </p>
  
  <p>I'm trying to illustrate the change in effects when treating the dummy variables as continuous in my estimate as opposed to treating them as a discrete change from 0 to 1. </p>
  
  <pre><code>probit dead dmage dmeduc i.dmar i.foreignb i.mblack i.mhispan i.motherr agesq i.tobacco i.alcohol
  margins, dydx(alcohol tobacco) // treating the discrete variables 
  margins, dydx(alcohol tobacco) continuous
  </code></pre>
  
  <p>According to the documentation the <code>margins</code> command stores the estimates using the <code>e()</code>. However when I try and save the estimates after using the <code>margins</code> command, regardless of whether I use </p>
  
  <pre><code>return list 
  ereturn list
  </code></pre>
  
  <p>it just returns the saved post estimation results from my <code>probit</code> model and not from the <code>margins</code> command. </p>
  
  <p>How do I store the marginal effects values and then put them in a table to show the comparison?</p>