Hi Torsten,

If you are fitting a line, why are you using "loess"? Why not simply use "lm" to fit a regression line that goes through the origin? (i.e. with no intercept).

Julian

jimm-pa...@gmx.de wrote:
Hi all,

I'm fitting a line to my dataset. Later I want to predict missing values that exceed the 
[min,max] interval of my empirical data, therefore I choose surface="direct" 
for extrapolation.

l1<-loess(y1~x1,span=0.1,data.frame(x=x1,y=y1),control=loess.control(surface="direct"))

In my application it is highly important that the fitted line intercepts at the 
point of origin. Is it possible to do this in R?

Thanks in advance.

Cheers,
Torsten
--

______________________________________________
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.


______________________________________________
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.

Reply via email to