Since this lab requires playing around with the data a lot, it is not necessary to print out all the commands used during the process. On the other hand, it is requested that you provide enough information to make it clear what steps you have taken. In other words, trivial output such as printing the design matrix should not be included in your final report.
(RACE) is a qualitative variable having
three levels. Collapse it into two levels (for simplicity) --- black
and non-black. Collapse also levels 1 and 2 of
into one level.


In the algorithm above, X is the
form of the design
matrix (including a constant column).
Make an initial guess at the value of
, which
is a
vector in this case. Repeat the steps outlined in the
algorithm above until you reach the desired degree of accuracy or
until
agrees with your estimate in I.2 above. List
the coefficients obtained in each iteration. How many iterations were
needed until convergence ?