Dear Ying-Chao If you have only one-dimensional, I understand that you can reduce your data on a XY list. Taking it in account, how about you use "gam" package/function?
require(gam) x<- seq(from=-5, to=5, by=0.2) y<-sin(x)+runif(length(x))+x/2 plot(y~x) # k is the kernel size for(k in 3:8) { smoth2d<-gam(y~s(x,k)) lines(predict(smoth2d)~x, col=k) } Best wishes, miltinho astronauta brazil On Sun, Sep 28, 2008 at 1:03 PM, Ying-Chao Hung <[EMAIL PROTECTED]>wrote: > To anyone who can help me: > I found that the function "smooth.ppp" in the package "spatstat" provides > the kernel estimate for the intensity function of a "two-dimensional" point > process with marks. > Does anyone know that which package can do this for simply a "one- > dimensional" point process with marks? > I've been searching all over the R site but still can not find the > packages. > Thanks a lot. > > Ying-Chao Hung > > ______________________________________________ > 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. > [[alternative HTML version deleted]] ______________________________________________ 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.