[R] Total least squares linear regression
Gnewbee
gnewbee at gmail.com
Wed Feb 10 16:29:46 CET 2010
Dear all,
After a thorough research, I still find myself unable to find a function
that does linear regression of 2 vectors of data using the "total least
squares", also called "orthogonal regression" (see :
http://en.wikipedia.org/wiki/Total_least_squares) instead of the
"ordinary least squares" method. Indeed, the "lm" function has a
"method" argument but the manual says that there is only one option so far.
However, since the samples I am studying have the type of relationship
that requires orthogonal regression, I am bound to use it.
The only thing I've found so far is the "tlsce" function in the "BCE"
package (see : http://cran.r-project.org/web/packages/BCE/index.html)
but I'm not sure it's of general use or designed for the particular
application of taxonomy, since its arguments are supposed to be matrices.
If any of you knew a function that does this or had a personnal script
to do this kind of regression, I'd be very grateful.
Thanks a lot in advance
Gnewbee
More information about the R-help
mailing list