title: Append three regression tables into separate panels
body: <p>Consider the following toy data: </p>
  
  <pre><code>input strL Country Population Median_Age Sex_Ratio GDP Trade year
  "United States of America" 3999 55 1.01 5000 13.1 2012
  "United States of America" 6789 43 1.03 7689 7.6 2013
  "United States of America" 9654 39 1.00 7689 4.04 2014
  "Afghanistan" 544 24 0.76 457 -0.73 2012
  "Afghanistan" 720 19 0.90 465 -0.76 2013
  "Afghanistan" 941 17 0.92 498 -0.81 2014
  "China" 7546 44 1.01 2000 10.2 2012
  "China" 10000 40 0.96 3400 14.3 2013
  "China" 12000 38 0.90 5900  16.1 2014
  "Canada" 7546 44 1.01 2000 1.2 2012
  "Canada" 10000 40 0.96 3400 3.1 2013
  "Canada" 12000 38 0.90 5900  8.5 2014
  end
  </code></pre>
  
  <p>I run different regressions (using three different independent variables): </p>
  
  <pre><code>*reg1
  
  local var "GDP Trade"
  foreach ii of local var{
  qui reg `ii' Population i.year    
  est table, b p
  outreg2 Population using table, drop(i.year*) bdec(3) sdec(3) nocons tex(nopretty) append
  }
  
  *reg2
  
  local var "GDP Trade"
  foreach ii of local var{
  qui reg `ii' Median_Age i.year    
  est table, b p
  outreg2 Population using table2, drop(i.year*) bdec(3) sdec(3) nocons tex(nopretty) append
  }
  
  *reg3
  
  local var "GDP Trade"
  foreach ii of local var{
  qui reg `ii' Sex_Ratio i.year    
  est table, b p
  outreg2 Population using table3, drop(i.year*) bdec(3) sdec(3) nocons tex(nopretty) append
  }
  </code></pre>
  
  <p>I use the <code>append</code> option to append different dependent variables that are to be regressed on the same set of independent variables. Hence, I obtain three different tables.</p>
  
  <p>I wish to "merge" these tables when I compile in <code>LaTeX</code>, so that they appear as a single table, with three different panels, one below the other. </p>
  
  <pre><code>Table1
  Table2
  Table3
  </code></pre>
  
  <p>I can use the <code>tex(frag)</code> option of the <em>community-contributed</em> command <code>outreg2</code>, but that will not give me the desired outcome.</p>