Learn R Programming

sampling (version 0.1)

UPmidzunopi2: Joint inclusion probabilities for Midzuno sampling

Description

Compute the joint inclusion probabilities for Midzuno sampling.

Usage

UPmidzunopi2(pik)

Arguments

pik
vector of inclusion probabilities.

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).

References

Midzuno, H. (1952), On the sampling system with probability proportional to sum of size. Annals of the Institute of Statistical Mathematics, 3:99-107.

See Also

UPmidzuno

Examples

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

Run the code above in your browser using DataLab