title: Exporting R regression summary for publishable paper
body: <p>I have multiple regression models in R, which I want to summarize in a nice table format that could be included in the publication. I have all the results ready, but couldn't find a way to export them, and it wouldn't be efficient to do this by hand as I need about 20 tables.</p>
  
  <p>So, one of my models is:</p>
  
  <pre><code>felm1=felm(ROA~BC+size+sizesq+age | stateyeard+industryyeard, data=data)
  </code></pre>
  
  <p>And I'm getting desired summary in R.</p>
  
  <p>However, what I want for my paper is to have only the following in the table, the estimates with t-statistic in the brackets and also the significance codes (<strong>*,</strong>,etc.).</p>
  
  <p>Is there a way to create any type of table which will include the above? Lyx, excel, word, .rft, anything really.</p>
  
  <p>Even better, another model that I have is (with some variables different):</p>
  
  <pre><code>felm2=felm(ROA~BC+BCHHI+size+sizesq+age | stateyeard+industryyeard, data=data)
  </code></pre>
  
  <p>could I have summary of the two regressions combined in one table (where same variables would be on the same row, and others would produce empty cells)?</p>
  
  <p>Thank you in advance, and I'll appreciated any attempt of help.</p>
  
  <p>Here is a reproducible example:</p>
  
  <pre><code> x&lt;-rnorm(1:20)
  
   y&lt;-(1:20)/10+x
  
   summary(lm(y~x))
  
  
  
     Coefficients:
              Estimate Std. Error t value Pr(&gt;|t|)    
  
  (Itercept)  1.0539     0.1368   7.702 4.19e-07 ***
  
    x         1.0257     0.1156   8.869 5.48e-08 ***
  </code></pre>
  
  <p>This is the result in R. I want the result in a table to look like</p>
  
  <pre><code> (Itercept)  1.0539*** (7.702)
        X      1.0257*** (8.869)
  </code></pre>
  
  <p>Is this possible?</p>