On 2010.05.11 18:30:57, Lourdes Molera wrote:> Hello,
> I need to select a sample from a small population using simple random
> sampling without replacement. I've found two possibilities in R, the
> function sample() and the function S.SI() in the package
> TeachingSampling, but I don't know which one is better.
> Can someone help me?
> Thank you
Hello Lourdes,
sample() is quite capable and is what I use for bootstrapping, etc. I am
not familiar with S.SI(), but my guess is that it probably uses sample()
under the hood. Though, it does appear that it returns some additional
information that may be handy, depending on your needs.
HTH,
~Jason
>
>
> --
> Lourdes Molera Peris
> M?todos Cuantitativos para la Econom?a y la Empresa
> Facultad de Econom?a y Empresa
> Universidad de Murcia
> Campus de Espinardo
> 30100 Murcia
>
> ______________________________________________
> 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.
--
Jason W. Morgan
Graduate Student
Department of Political Science
*The Ohio State University*
154 North Oval Mall
Columbus, Ohio 43210