regression - extracting the residuals
fit<-lm(y~x) e<-resid(fit) # extract the residuals as a list? yhat<- predict(fit)