Skip to content
Prev 228988 / 398500 Next

re-sampling of large sacle data

It looks to me like you keep sampling from some dataset 's' 10,000
times.  Since you can sample() with replacement, I wonder if you could
just take a sample of the size you want, rather than using a loop with
sample.  Perhaps along these lines:

d <- apply(s, 2, sample, size = 10000*nrow(s), replace = TRUE)
pos_neg_tem <- t(apply(d,1,doit))

Josh
On Tue, Jul 27, 2010 at 3:44 PM, jd6688 <jdsignature at gmail.com> wrote: