title: Outputting Regression results into a data frame in R
body: <p>I was wondering if there is any command that can output the results of a lm model into a data frame in R like outest in SAS.
  Any ideas? I am running multiple models and I want the result to look like below -</p>
  
  <pre><code>Model  |  alpha   | Beta | Rsquared | F |  df |
  model0 |  8.4     | ...  | ....     | ..|  .. |
  model1 |  ...     | ...  | ....     | ..|  .. |
  model2 |  ...     | ...  | ....     | ..|  .. |
  </code></pre>
  
  <p>The data i have is 'ds' which is -</p>
  
  <pre><code>X1 | X2 | Y1 |
  .. | .. | .. |
  .. | .. | .. |
  .. | .. | .. |
  .. | .. | .. |
  </code></pre>
  
  <p>And my code is a simple lm code -</p>
  
  <pre><code>model0 &lt;- lm(Y1 ~ X1, ds)
  model1 &lt;- lm(Y1 ~ 1, ds)
  model2 &lt;- lm(Y1 ~ X1 + X2, ds)
  </code></pre>