[R] about lscv

2012-07-31 Thread chester123
Thanks in advance. Nowadays I just calculate the bandwidth h of cross validation in kernel smoothing using R language. And I just looked up the usage of function, which is lscv(x,.., exact=FALSE) My question is what does "" stand for and mean? do you mind specifically explaining it

[R] about different bandwidths in one graph

2012-07-17 Thread chester123
Thank you in advance. Now I want to make comparison of the different bandwidth h in a normal distribution graph. This is the table of bandwidth h: thumb rule (normal)--0.00205; thumb rule(Epanech.)--0.00452; Plug-in (normal)--0.0009; Plug-in(Epanech.)--0.002. this is the condition: N=1010 data

[R] about dpik

2012-07-17 Thread chester123
Thanks in advance here. I use dpik() function to calculate the bandwidth h. Following is the related code: h<-dpik(x,scalest="minim",level=2L,kernel="normal",canonical=FALSE,gridsize=401L,range.x=range(x),truncate=TRUE) But there is warning messages: 1: In bkfe(gcounts, 6L, alpha, range.x = c(sa

[R] about dpik

2012-07-16 Thread chester123
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.00579

Re: [R] About dpik function

2012-07-16 Thread chester123
e.com To: chester...@live.cn Subject: Re: About dpik function On 15/07/2012 19:57, chester123 wrote: > Hi there and thanks in advance. > > Nowadays I am working on the plug-in bandwidth selection with R. Firstly, my So why use package KernSmooth and not the methods in R it

[R] About dpik function

2012-07-15 Thread chester123
Hi there and thanks in advance. Nowadays I am working on the plug-in bandwidth selection with R. Firstly, my 1010 data is the return rate from Yahoo Finance. Secondly, my code is following: > r=read.table("/Users/user/Desktop/research/a.txt",sep=",",header=TRUE) > x<-r[8:1010,] > library(KernSmoot