Skip to content

About dpik function

3 messages · chester123, Brian Ripley

#
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:
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 and i am a rookie, please help with that. Thanks!


--
View this message in context: http://r.789695.n4.nabble.com/About-dpik-function-tp4636590.html
Sent from the R help mailing list archive at Nabble.com.
#
On 15/07/2012 19:57, chester123 wrote:
So why use package KernSmooth and not the methods in R itself?
So what is 'x'?  We don't know (your code is not reproducible), but it 
sure looks like a factor.  And from the help:

        x: vector containing the sample on which the kernel density
           estimate is to be constructed.

A factor is not a vector (in this sense).
PLEASE do as you were asked.