Simple random sampling with replacement
Draws a simple random sampling with replacement of size n (equal probabilities, fixed sample size, with replacement).
srswr(n,N)
n |
sample size. |
N |
population size. |
Returns a vector of size N, the population size. Each element k of this vector indicates the number of replicates for unit k in the sample.
s=srswr(3,10) #the selected units are (1:10)[s!=0] #with the number of replicates s[s!=0]
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.