I always used lm() to check the linear regression for two series. That function returns a coefficient(beta) that i can use doing:
y = beta*x
Today I found the princomp() function, that calculate the Total Least Squares.
It should be good for me (more accurate). I've done some tests using princomp(), like:
r <- princomp( ~ x + y)
My problem is: How to interpret its results.
How can I get the coefficient? (with "coefficient" i mean, the number that i have to use to multiply the X value to give a numer similar to y)
Could someone help me?
(I'm using R)