Re: [R] Question about random sampling in R

2006-10-20 Thread tom soyer
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

[R] Question about random sampling in R

2006-10-19 Thread tom soyer
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)

Re: [R] Question about random sampling in R

2006-10-19 Thread Liaw, Andy
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.,

Re: [R] Question about random sampling in R

2006-10-19 Thread Marc Schwartz
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

Re: [R] Question about random sampling in R

2006-10-19 Thread Ted Harding
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

Re: [R] Question about random sampling in R

2006-10-19 Thread Francisco J. Zagmutt
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

Re: [R] Question about random sampling in R

2006-10-19 Thread Alberto Monteiro
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