[R] Bootstrapping

2011-12-06 Thread Bastian Offermann
Hello, I am having some trouble setting up a bootstrapping prodecure. I create artificial data and would like to use these to bootstrap a t-test statistic from these. Especially I do not really get how boot uses the indices variable or i variable. Can anybody help out? Thanks!! b0 <- 1/2

[R] Static random numbers

2008-12-03 Thread Bastian Offermann
w. The fact that they are kept as a zoo object should not be of too much concern here. Thanks in advance. Regards Bastian Offermann __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http:/

[R] remove multiple elements from vector

2008-09-27 Thread Bastian Offermann
Hello all, one brief question I would like to remove double/triple elements from a vector, e.g. 0 1 1 1 1 2 2 2 4 5 6 6 but keep one of these multiple ones. Should look like this finally: 0 1 2 4 5 6 My function does not work somehow for(i in 2 : length(x)) {