# Ik: Sample Membership Indicator In TeachingSampling: Selection of Samples and Parameter Estimation in Finite Population

## Description

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

## Usage

 `1` ```Ik(N, n) ```

## Arguments

 `N` Population size `n` Sample size

## Value

The function returns a matrix of binom(N)(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.

`Support, Pik`

## Examples

 ```1 2 3 4 5 6 7``` ```# Vector U contains the label of a population of size N=5 U <- c("Yves", "Ken", "Erik", "Sharon", "Leslie") N <- length(U) n <- 2 # The sample membership matrix for fixed size without replacement sampling designs Ik(N,n) # The first unit, Yves, belongs to the first four possible samples ```

### Example output

```      [,1] [,2] [,3] [,4] [,5]
[1,]    1    1    0    0    0
[2,]    1    0    1    0    0
[3,]    1    0    0    1    0
[4,]    1    0    0    0    1
[5,]    0    1    1    0    0
[6,]    0    1    0    1    0
[7,]    0    1    0    0    1
[8,]    0    0    1    1    0
[9,]    0    0    1    0    1
[10,]    0    0    0    1    1
```

TeachingSampling documentation built on April 22, 2020, 1:05 a.m.