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
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
2 matches
Mail list logo