[R] lsfit residuals

Tanya Cashorali tanyacash at gmail.com
Sun Oct 25 18:20:08 CET 2009


I'm trying to extract the points above and below a particular lsfit. I  
can only get the residuals from the original fit though.

x = runif(100, 0, 10)
plot(x)
abline(lsfit(1:100, test))
abline(lsfit(1:100, test + sd(test))) #I want the points above THIS  
line.

Is there a way to use the coefficients from the fit to do this?
Thanks for any help.




More information about the R-help mailing list