Skip to content

longer object length, is not a multiple of shorter object length in: kappa * gcounts

3 messages · Hui Han

#
Hi,

I was using a density estimation function as follows:
 > est <- KernSmooth::bkde(x3, bandwidth=10)
When setting bandwidth less than 5, I got the error "longer object 
length,  is not a multiple of shorter object length in: kappa * gcounts ".

I wonder if there is anybody who can explain the error for me?

Thanks!
Hui
#
Hi,

Another phenomenon is that if I don't sort the data vector x3, I get the 
same error  regardless of the bandwidth value:
"longer object length,  is not a multiple of shorter object length in: 
kappa * gcounts ".

Thanks in advance for any help you can give me!

Hui
Hui Han wrote:

            
#
Hui Han wrote:

            
Actually for really large bandwidth,e.g. 120, it deosn't report 
errors.  Sorry for the confusing description.