From: Prof Brian Ripley (email@example.com)
Date: Thu 13 May 2004 - 22:48:22 EST
Your problem is that some bootstrap samples have no variation in x at all.
How can you expect a sensible answer from such a sample?
On Thu, 13 May 2004, Hwange Project wrote:
> I'm fighting with the following problem :
> I want to do bootstrapping on a Kendall correlation with the following code
Using package boot, uncredited!
> > cor.function <- function(data,i) cor(data[i, 1], data[i,
> > boot.ci <- boot.ci(boot.cor <- boot(cbind(x,y),cor.function,
> However, I've got problems because I've got ties in my x variables :
> for example, it does not work with :
> x <-
> y <- c(329,264,274,339,302,334,334,312,355,327,287,319,361,355)
> cor.function <- function(data,i) cor(data[i, 1], data[i,
> boot.ci <- boot.ci(boot.cor <- boot(cbind(x,y),cor.function,
> I would appreciate any advice, even of changing from kendall to something
> else, knowing that my x variables have a lot of ties and is far from
> normally distributed.
Given that you haven't told us your objective, we cannot help you choose
-- Brian D. Ripley, firstname.lastname@example.org Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
______________________________________________ Remail@example.com mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:09 EST