title: How to output R square and RMSE in SAS
body: <p>I regress Y on X. The regression is grouped by DATE. </p>
  
  <pre><code>proc reg data=A noprint;
      model Y=X;
      by DATE;
  run;
  </code></pre>
  
  <p>In the regression result for each DATE, there is a R square and a RMSE value.
  How do I output a table of R square and RMSE values as below. Thank you!
  <code></p>
  
  <pre>
  |------------|-----------|------------|
  |    Date    |  R Square |    RMSE    |
  |------------|-----------|------------|
  |  1/1/2009  |     R1    |    RMSE1   |
  |  2/1/2009  |     R2    |    RMSE2   |
  |  3/1/2009  |     R3    |    RMSE3   |
  |    ....    |    ....   |    ....    |
  |  10/1/2010 |     R22   |    RMSE22  |
  |  11/1/2010 |     R23   |    RMSE23  |
  |  12/1/2010 |     R24   |    RMSE24  |
  |------------|-----------|------------|
  </pre>
  
  <p></code></p>