search for: scalest

Displaying 3 results from an estimated 3 matches for "scalest".

Did you mean: scales
2008 Jan 03
1
KernSmooth: bkde and dpik bandwidth questions
...ect length is not a multiple of shorter object length I saw an earlier post , but the issue was using the bkde fxn and the person appeared to be using too small of a bandwidth. However, dpik returns a bandwidth and therefore I am not sure why I am getting this error. If I use dpik and specify scalest to be "stdev" then the fxn works. Secondly, I am using the bkde function and when I put in a vector of data the function computes some bandwidth to use as it then proceeds to return x and y vectors. I do not see in the documentation the process by which this bandwidth is computed....
2012 Jul 16
2
about dpik
...;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: http://r.789695.n4.nabble.com/about-dpik-tp...
2012 Jul 15
1
About dpik function
...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(KernSmooth) > dpik(x,scalest="minim",level=2L,kernel="normal",canonical=FALSE,gridsize=401L,range.x=range(x),truncate=TRUE) But the error happens like this: Error in Summary.factor(c(233L, 917L, 381L, 748L, 272L, 242L, 269L, 963L, : range not meaningful for factors I don't know what's wrong an...