Re: [R] Block Bootstrap Simulation

From: Ingmar Visser <i.visser_at_uva.nl>
Date: Fri 16 Jul 2004 - 20:47:44 EST


On 7/16/04 11:51 AM, "Campbell" <p.campbell@econ.bbk.ac.uk> wrote:

> I don't want to use loop because a) the overhead and b) I'm comparing it with
> another technique that doesn't require a loop, and programming the simulation
> without the loop gave me an insight into the solution of the problem
> Is there a way of doing this without using a loop?
>
> s<-1:n
> v<-sample(s, replace=TRUE)
> w<-v:(v+k)
>
> Doesn't work

Why doesn't it work, ie if you replace w<-v:(v+k) by w<-(v*k):((v+1)*k)?

ingmar



R-help@stat.math.ethz.ch 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 Received on Fri Jul 16 20:56:17 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:55:02 EST