[R] about dpik

chester123
Mon, 16 Jul 2012 20:26:09 -0000

Thank you for your reply.

I know the x in dpik() means the vector. But I don't know how to import into
c() with a huge metadata (>1000).

Following is my some try, and the h is: [1] 0.001180569, which seems to be
feasible.

x<-c(-0.00109349389485645,-0.00145304131152137,0.00023685387037116,0.00579094886320110,0.00032117330426379,0.00363758302533228,-0.00113344327121731,0.00104726223729409)
library(KernSmooth)
h<-dpik(x,scalest="minim",level=2L,kernel="normal",canonical=FALSE,gridsize=401L,range.x=range(x),truncate=TRUE)
h

But the point is how to import more than 1000 numbers into the c() to
vectorize them?

Thanks

Regards


--
View this message in context: