[R] locpoly (was: no subject)

Liaw, Andy andy_liaw at merck.com
Fri Mar 5 14:14:07 CET 2004


1. Please do make use of the subject line.

2. Please (re-)read the description of the `range.x' argument in ?locpoly:
it's suppose to be a vector of min and max x values.

3. I hope you realize how grossly inefficient this computation is...

Andy


> From: klea lambrou
> 
> 
>    hello R-users.could you please help me on this one?i have 
> 2 vectors x1
>    and y1 and both have the same size.i want to use the 
> locpoly function
>    from the kernsmooth package in order to estimate a regression
>    function.at each estimation i want to leave one 
> observation out,and i
>    want my estimation to be at the observation i left out.i tried :
> 
>     for (j in 1:length(x1))
>    + A<-locpoly(x1[-1],y1[-1],bandwidth=4,gridsize=1,range.x=x1[1])
>    Error in rep.default(0, dimfkap) : invalid number of 
> copies in "rep"
> 
>    i want the gridsize to be equal to one,and i will choose 
> the bandwidth
>    at each time.what am i doing wrong?can you help me?
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
> 


------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}




More information about the R-help mailing list