[R] random sampling steps in R with replacement
Gerrit Eichner
Gerrit.Eichner at math.uni-giessen.de
Thu Mar 10 10:12:41 CET 2011
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 <tabieg at yahoo.com>
> To: R help <r-help at r-project.org>
> Sent: Thursday, March 10, 2011 11:53 AM
> Subject: [R] random sampling steps in R
>
> 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
> corresponding confidence intervals.
>
> Please assist.
>
>
> Thanks so much,
>
> Taby
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list