Skip to content

Iterations of random sampling

2 messages · René Pineda, Chuck Cleland

#
On 3/11/2009 3:15 PM, Ren? Pineda wrote:
X <- rbinom(230000, 1, .5)

sample.sums <- replicate(20000, sum(sample(X, 10)))