title: How to include dummy variables in ivreg model?
body: <p>I have the following model: </p>
  
  <pre><code>ivreg ldemand social_housing transport year (lprice = utilities)
  </code></pre>
  
  <p>However, I want to make <code>year</code> as a dummy variable. </p>
  
  <p>How can I do it in Stata? </p>
  
  <p>Using <code>i.year</code> doesn't work for the <code>ivreg</code> command.</p>
  
  <p>Cross-posted on <a href="https://www.statalist.org/forums/forum/general-stata-discussion/general/1451808-how-to-include-dummy-variables-in-ivreg-model-in-stata" rel="nofollow noreferrer">Statalist</a>.</p>