ron-r
6/5/2014 - 10:45 AM

regression - extracting the residuals

regression - extracting the residuals


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