Re: [R] Kernel Estimate for the Intensity Function

2008-09-28 Thread milton ruser
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) { sm

[R] Kernel Estimate for the Intensity Function

2008-09-28 Thread Ying-Chao Hung
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 m