Re: [R] Sampling in R: Please read my email from attached text.

2009-04-21 Thread David Winsemius
You need to sample pairs rather than sampling individually within Xvar and Yvar. You also generally sample with replacement. If you sample without replacement for the length of the data, then you just get the same set. On Apr 21, 2009, at 3:54 AM, skayis selcuk wrote: David Winsemius,

[R] Sampling in R: Please read my email from attached text.

2009-04-21 Thread skayis selcuk
(Sorry for multiple posting. Seems to be my msg is not distributed in my previous emails) Dear R users, I need to do sampling without replacement (bootstraps). I have two variables (Xvar, Yvar). I have a correlation from original data set cor(Xvar, Yvar)=0.6174221. I am doing 5 samplin