Re: [R] random sampling steps in R

2011-03-10 Thread Ista Zahn
?Control and ?sample should get you started. Best, Ista On Thu, Mar 10, 2011 at 8:53 AM, taby gathoni wrote: > Dear all, > > Could someone assist me in random sampling steps/code in R? I have a main > sample  of  42 males and 165 females and I want to come up with about 1000 > samples of 20 ma

Re: [R] random sampling steps in R with replacement

2011-03-10 Thread Gerrit Eichner
Hello, Taby, for your (first) problem take a look at ?sample and its argument replace. Regards -- Gerrit On Thu, 10 Mar 2011, taby gathoni wrote: Please note is with replacement From: taby gathoni To: R help Sent: Thursday, March 10, 2011 11:53 AM Subject: [R] random sampling steps

[R] random sampling steps in R

2011-03-10 Thread taby gathoni
Dear all, Could someone assist me in random sampling steps/code in R? I have a main sample of 42 males and 165 females and I want to come up with about 1000 samples of 20 males and 20 females from this main sample. While at it, i would also like to come up Accuracy Ratios (ARs) with correspo