Oh yes, you are right. It seems that the default distribution used for
sampling is uniform. And whether the resampling generates a random
distribution or not depends on the distribution being sampled.
Thanks everyone for your help! I appreciate your support very much.
Tom
On 10/19/06, Ted
Hi,
I looked up the help file on sample(), but didn't find the info I was
looking for.
When sample() is used to resample from a distribution, e.g., bootstrap, how
does it do it? Does it use an uniform distribution, e.g., runif(), or
something else? And, when the help file says:sample(x)
When sampling with replacement (like ordinary bootstrap), each draw is
done independently, and in each draw every point has equal probability
of being drawn. When sampling without replacement (random permutation),
all possible sequences (permutations) have equal probability of
occurring. E.g.,
On Thu, 2006-10-19 at 12:07 -0500, tom soyer wrote:
Hi,
I looked up the help file on sample(), but didn't find the info I was
looking for.
When sample() is used to resample from a distribution, e.g., bootstrap, how
does it do it? Does it use an uniform distribution, e.g., runif(), or
On 19-Oct-06 tom soyer wrote:
Hi,
I looked up the help file on sample(), but didn't find the
info I was looking for.
When sample() is used to resample from a distribution, e.g.,
bootstrap, how does it do it? Does it use an uniform distribution,
e.g., runif(), or something else?
I don't
Medicine and Biomedical Sciences
Colorado State University
From: Marc Schwartz [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: tom soyer [EMAIL PROTECTED]
CC: r-help r-help@stat.math.ethz.ch
Subject: Re: [R] Question about random sampling in R
Date: Thu, 19 Oct 2006 13:10:20 -0500
On Thu, 2006
Tom Soyer wrote:
I looked up the help file on sample(), but didn't find the info I was
looking for.
When sample() is used to resample from a distribution, e.g.,
bootstrap, how does it do it? Does it use an uniform distribution,
e.g., runif(), or something else? And, when the help file