[R] Question about span in Loess function

From: Zhou, Yijie <yijzhou_at_jhsph.edu>
Date: Fri 15 Sep 2006 - 20:00:24 GMT


I want to do 2-dimentional loess smoothing in gam through the command  

gam(Y~lo(X1,X2,span=span,degree=1) )  

in library "gam".  

The span is the percentage of data points to define the neighborhood and used for the smoothing.  

Does this command do one 2-dimentional smoothing with neighboring defined according to the radius of the data point || X=(X1,X2) ||, or it does two 1-dimentional smoothing which smooths X1, X2 separately?  

I'm actually doing spatial smoothing with longitude and latitude, so I need the 2-dimentional smoothing so the results won't depend on the coordinate values.  

Thanks a lot!!!  

Yijie Zhou

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch 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. Received on Sat Sep 16 06:01:09 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 15 Sep 2006 - 20:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.