[R] functions sample() and S.SI()
jwm-r-help at skepsi.net
Tue May 11 18:45:39 CEST 2010
On 2010.05.11 18:30:57, Lourdes Molera wrote:
> 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
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.
> 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
> 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
Department of Political Science
*The Ohio State University*
154 North Oval Mall
Columbus, Ohio 43210
More information about the R-help