Re: [R] How indices calculated in package boot

2012-02-10 Thread 538280
In your second example the boot function will still generate its random indicies before your internal function calls sample, so the seed will be different when you call sample from what you originally set it to. If you really want to know what the boot function does, look at its code (it does

[R] How indices calculated in package boot

2012-02-08 Thread Deng Nina
Hi,there, I am using R package boot to bootstrap. I have one question here: does anybody possibly know how the boot package generates the indices which is used in the statistic function? I thought indices = sample(data, replace=TRUE), but when I replaced indices with this command and used boot,