Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

IkRS

Sample Membership Indicator for Random Size sampling designs


Description

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

Usage

IkRS(N)

Arguments

N

Population size

Value

The function returns a matrix of 2^N rows and N columns. The kth column corresponds to the sample membership indicator, of the kth unit, to a possible sample.

Author(s)

Hugo Andres Gutierrez Rojas hagutierrezro@gmail.com

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

Examples

# Vector U contains the label of a population of size N=5
U <- c("Yves", "Ken", "Erik", "Sharon", "Leslie")
N <- length(U)
n <- 3
# The sample membership matrix for fixed size without replacement sampling designs
IkRS(N)
# The first sample is a null one and the last sample is a census

TeachingSampling

Selection of Samples and Parameter Estimation in Finite Population

v4.1.1
GPL (>= 2)
Authors
Hugo Andres Gutierrez Rojas <hagutierrezro@gmail.com>
Initial release
2020-04-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.