Learn R Programming

SunterSampling (version 1.0.1)

sunterpi2: Joint inclusion probabilities for Sunter sampling

Description

The function computes the joint (second-order) inclusion probabilities for Sunter sampling.

Usage

sunterpi2(x, n)

Arguments

x
the vector of values of the auxiliary variable (measure of size)
n
the sample size

Value

Returns a $NxN$ matrix of the following form: the main diagonal contains the first-order inclusion probabilities for each unit $k$ in the population; elements $(k,l)$ are the joint inclusion probabilities of units $k$ and $l$, with $k$ not equal to $l$. $N$ is the population size.

References

C-E. Sarndal, B. Swensson, J. Wretman: Model Assisted Survey Sampling, Springer, New York, 1992

See Also

sunter, sunterpi

Examples

Run this code
# from Sarndal et al. (1992)
x<-c(40,25,20,10,5)
n<-2
sunterpi2(x,n)

Run the code above in your browser using DataLab