title: Stata - How to get Indicator Variable Indicators (Yes/No) to Appear in esttab LaTeX Output
body: <p>Suppose I use this dataset:</p>
  
  <pre><code>sysuse nlsw88, clear
  </code></pre>
  
  <p>I want to run a regression and save it to a .tex file using esttab. The regression is this:</p>
  
  <pre><code>reg wage grade i.industry i.occupation, robust
  </code></pre>
  
  <p>Importantly, I want to indicate that I am using industry and occupation dummies, but I do not want any of the coefficients to appear in the table.</p>
  
  <p>One way to do this is to hardcode industry and occupation indicators:</p>
  
  <pre><code>eststo clear
  eststo: reg wage grade, robust
  estadd local industry "No"
  estadd local occupation "No"
  eststo: reg wage grade i.industry i.occupation, robust
  estadd local industry "Yes"
  estadd local occupation "Yes"
  esttab est* using "${path}/regress_wage.tex", r2 ar2 b(3) se label booktabs ///
      replace nodepvars nomtitles drop(*industry *occupation) ///
      scalars("industry Industry" "occupation Occupation") 
  </code></pre>
  
  <p>But I would really like to not have to manually put these in. I found out about the indicate <code>option</code>, but I can't get it to work with <code>i.</code> variables. I have tried:</p>
  
  <pre><code>eststo clear
  eststo: reg wage grade, robust
  eststo: reg wage grade i.industry i.occupation, robust
  esttab est* using "${path}/regress_wage.tex", r2 ar2 b(3) se label booktabs ///
      replace nodepvars nomtitles drop(*industry *occupation) ///
      indicate(Industry = *industry*)
  </code></pre>
  
  <p>I have also tried swapping the last line out for:</p>
  
  <pre><code>    indicate(Industry = _Iindustry*)
      indicate(Industry = industry*)  
      indicate(Industry = *industry)
  </code></pre>
  
  <p>But nothing works. What to do?</p>
  
  <p>Also, is there a way to get the <code>Industry</code> and <code>Occupation</code> indicators to appear right below the constant as opposed to below the adjusted R-squared?</p>