[R] equation of a line or curve
ligges at statistik.tu-dortmund.de
Tue Nov 25 10:16:08 CET 2008
> Hi R users
> I used the function line(x,y) and line(lowess(x,y)) to see the correlation
> between 2 variables (x,y).
> Here is my question:
> is there a way to ask R to tell me the equation of
> -this line : line(x,y)
The equation if line(x,y)? It is given by the n data points directly and
consists of n-1 separate linear parts.
> -this curve: line(lowess(x,y))
lowess() is a bit obscure. See the help files which points to the code.
All in all, rather than dealing with points or smoothed points, I think
you really want to fit a specific model so that you can get some
"equation" in a closed form.
> Best regards
More information about the R-help