title: Exporting R regression results to tables for publication
body: <p>I'm wondering if R has a function to store multiple regression results, decide what you want to keep from them (e.g. not interested in confidence intervals) and then export these results into a convenient table in Word or a .rtf document that can be inserted into academic work. </p>
  
  <p>I'm thinking about the functionality the <code>esttab</code> command in Stata allows. </p>
  
  <p>So for instance in Stata you store the results after each executed regression using</p>
  
  <pre><code>est sto a1 
  </code></pre>
  
  <p>Then once you've stored various versions, you can use the following command</p>
  
  <pre><code>esttab a1 a2 a3 a4 a5 a6 a7 using "C:\...\table_name.rtf", replace compress onecell nogaps stats(N N_g r2) star b(3) se(3) starlevels(* 0.05 ** 0.01 *** 0.001) title(Table 1: This is a Stata Table ) order(order of your variables in the produced table) keep(which variables to keep if there are some you don't want - useful for when you have time series year dummies for instance)
  </code></pre>
  
  <p>Anything similar? </p>
  
  <p>Following a question by the responder (and minus 2 for the question???) an update using some of my code. It's very basic and the Stata code captures exactly what I want to do so I'm a bit confused about the negative scoring.</p>
  
  <p>Imagine you have the following regressions:</p>
  
  <pre><code>    ctrl &lt;- vv10 ~ ro_rnd + ro_int + ro_col + c_obj + ro_org2 + sc_org + sc_funding + sc_ties + sc_friends + sc_know + r_jobtime + r_wj + sen_match1 + search + lm.res + scenprop
  
  lm.base &lt;- lm(ctrl, data=d)
    temp1 &lt;- summary(lm.base)
  
  lm.main &lt;- update(lm.base, ~. + r_netw_kn + r_brmean6 + r_conf3 + I(r_conf3^2) + r_wtwws, data=d) 
    temp2 &lt;- summary(lm.main) # model 2
  
  lm.intp1 &lt;- update(lm.main, ~. + r_brmean6:r_conf3 + r_brmean6:I(r_conf3^2))
    temp3 &lt;- summary(lm.intp1)
  </code></pre>
  
  <p>The summaries of three regressions are stored in three temporary lists called <code>temp1, temp2, and temp3</code></p>
  
  <p>From these three lists what I want is to be able to export specific sections (i.e. columns from the summary) so that I can keep the <code>estimate</code>, the <code>standard error</code>, and <code>the stars</code>, the model fit (in the case of lm regressions via <code>temp1[9]</code> and ideally re-order the variables, place the standard errors between brackets, and reduce the number of numbers after the comma, so that I can use them directly in a table for a paper. 
  In Stata this is possible via the <code>esttab</code> command as mentioned before. Using <code>knitr</code> does not really allow me the flexibility to delete the things I don't need and create one table with multiple, stepwise, regressions in which new variables are added every step (which is the common approach to represent results in management).</p>
  
  <p>Hope this clarification helps.</p>