Learn R Programming

StratifiedSampling (version 0.4.1)

qfromw: q from w

Description

This function finds the matrix q form a particular w.

Usage

qfromw(w, n)

Value

A matrix of size N x n, where N is equal to the length of the vector w.

Arguments

w

A vector of weights.

n

An integer that is equal to the sum of the inclusion probabilities.

Author

Raphaël Jauslin raphael.jauslin@unine.ch

Details

w is generally computed by the formula pik/(1-pik), where n is equal to the sum of the vector pik. More details could be find in Tille (2006).

References

Tille, Y. (2006), Sampling Algorithms, springer