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

Hui Han huihan at yahoo-inc.com
Tue Apr 19 03:03:24 CEST 2005


I see. Thanks, Andy!
Hui


Liaw, Andy wrote:

>I suspect you set the bandwidth too small.  Consider:
>
>  
>
>>x <- sort(runif(100)) * 100
>>min(diff(x))
>>    
>>
>[1] 0.001700642
>  
>
>>library(KernSmooth)
>>    
>>
>KernSmooth 2.22 installed
>Copyright M. P. Wand 1997
>  
>
>>dx <- bkde(x, bandwidth=.001)
>>    
>>
>Warning message:
>longer object length
>        is not a multiple of shorter object length in: kappa * gcounts 
>
>Andy
>
>  
>
>>From: 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
>>
>>______________________________________________
>>R-help at stat.math.ethz.ch mailing list
>>https://stat.ethz.ch/mailman/listinfo/r-help
>>PLEASE do read the posting guide! 
>>http://www.R-project.org/posting-guide.html
>>
>>
>>
>>    
>>
>
>
>
>------------------------------------------------------------------------------
>Notice:  This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message.  If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system.
>------------------------------------------------------------------------------
>
>
>
>  
>




More information about the R-help mailing list