UPsystematic {sampling} | R Documentation |
Use systematic method to select a sample of units (unequal probabilities, without replacement, fixed sample size).
UPsystematic(pik)
pik |
vector of prescribed inclusion probabilities. |
Return a vector (0 and 1) of size N, where N is the population size.
Madow, W.G. (1949), On the theory of systematic sampling, II, Annals of Mathematical Statistics, 20, 333-354.
inclusionprobabilities
,UPrandomsystematic
############ ## Example 1 ############ #define the prescribed inclusion probabilities pik=c(0.2,0.7,0.8,0.5,0.4,0.4) #select a sample UPsystematic(pik) ############ ## Example 2 ############ data(belgianmunicipalities) Tot=belgianmunicipalities$Tot04 name=belgianmunicipalities$Commune pik=inclusionprobabilities(Tot,200) #select a sample s=UPsystematic(pik) as.vector(name[s==1])