Skip to content

functions sample() and S.SI()

2 messages · Lourdes Molera, Jason Morgan

#
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
#
On 2010.05.11 18:30:57, Lourdes Molera wrote:
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