Answers to Assignment 2:

/* raw regression weights */

   X1    .6770817 
   X2    .393441
_cons    .1025527

/* vector of predicted scores */

 3.03048 
 3.03048 
 2.353398 
 1.959957 
 4.494443 
 5.171525 
 4.668284 
 5.061725 
 6.022447 
 5.345366 
 4.778084 
 4.101003 
 7.706011 
 7.312571 
 7.879852 
 8.950375 
 8.840574 
 8.163492 
 5.564966 
 5.564966 

/* vector of residual scores */

  -1.03048  
  -2.03048 
  -1.353398 
  -.9599573 
   .5055565 
  -1.171525 
   2.331716 
  .9382751 
  .9775528 
   2.654634 
  -1.778084 
  -1.101003 
  -1.706011 
  -1.31257 
   2.120148 
   .0496255 
  -2.840574 
  -2.163492 
   3.435034 
   4.435034 

/* R-squred */ 

   0.5054
   
/* F-ratio */

   8.69
   
/* bonus items */

regress y x1 x2

      Source |       SS       df       MS              Number of obs =      20
-------------+------------------------------           F(  2,    17) =    8.69
       Model |  83.3909043     2  41.6954522           Prob > F      =  0.0025
    Residual |  81.6090957    17  4.80053504           R-squared     =  0.5054
-------------+------------------------------           Adj R-squared =  0.4472
       Total |         165    19  8.68421053           Root MSE      =   2.191

------------------------------------------------------------------------------
           y |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          x1 |   .6770817   .1953009     3.47   0.003     .2650328    1.089131
          x2 |    .393441   .2948695     1.33   0.200    -.2286792    1.015561
       _cons |   .1025527   1.660174     0.06   0.951    -3.400108    3.605214
------------------------------------------------------------------------------