Learn R Programming

sampling (version 0.1)

UPtillepi2: Joint inclusion probabilties for Till� sampling

Description

Compute the joint inclusion probabilities for Till� sampling.

Usage

UPtillepi2(pik,eps=0.000005)

Arguments

pik
vector of first order inclusion probabilities.
eps
the control value, by default equal to 0.000005.

encoding

latin1

Details

Return a NxN matrix with the first order inclusion probability for each unit k in the population on the first diagonal and with the joint inclusion probability of units k and l in position (k,l) in the matrix, where k and l are not equal (N is the population size). The value eps is used to control pik (pik>eps & pik < 1-eps).

References

Till�, Y. (1996), An elimination procedure of unequal probability sampling without replacement, Biometrika, 83:238-241.

See Also

UPtille

Examples

Run this code
#define the prescribed inclusion probabilities
pik=c(0.2,0.7,0.8,0.5,0.4,0.4)
UPtillepi2(pik)

Run the code above in your browser using DataLab