[R] Forcing the extrapolation of loess through the origin

Julian Burgos jmburgos at u.washington.edu
Tue Apr 14 20:22:59 CEST 2009


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-panse at 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 at 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.
>




More information about the R-help mailing list