Rob Hodgkinson wrote: > Forgive me, I do not yet use R nor is it (yet) installed on my machine. > > I just need an answer to whether (and how ?) R is able to do Ordinary Least > Squares (OLS) Regression with the requirement that the regressed line must > pass through the origin. > > When you enter ?lm at the R-prompt you should get a help file that includes a paragraph like this:
"A formula has an implied intercept term. To remove this use either |y ~ x - 1| or |y ~ 0 + x|. See |formula <formula.html>| for more details of allowed formulae." -- David Winsemius ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.