Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


TeachingSampling (version 4.1.1)

IkWR: Sample Membership Indicator for with Replacements sampling designs

Description

Creates a matrix of values (1, if the unit belongs to a specified sample and 0, otherwise) for every possible sample under fixed sample size designs without replacement

Usage

IkWR(N, m)

Arguments

N

Population size

m

Sample size

Value

The function returns a matrix of binom(N+m1)(m) rows and N columns. The kth column corresponds to the sample membership indicator, of the kth unit, to a possible sample. It returns a value of 1, even if the element is selected more than once in a with replacement sample.

References

Sarndal, C-E. and Swensson, B. and Wretman, J. (1992), Model Assisted Survey Sampling. Springer. Gutierrez, H. A. (2009), Estrategias de muestreo: Diseno de encuestas y estimacion de parametros. Editorial Universidad Santo Tomas.

See Also

nk, Support, Pik

Examples

Run this code
# NOT RUN {
# Vector U contains the label of a population of size N=5
U <- c("Yves", "Ken", "Erik", "Sharon", "Leslie")
N <- length(U)
m <- 2
# The sample membership matrix for fixed size without replacement sampling designs
IkWR(N,m)
# }

Run the code above in your browser using DataLab