Section B, Problems 2 and 3

Fixed the function so that it handles NAs more gracefully.  Also made
it case wise delete NAs on the dependent variable in the out of step
data.