qfromw {StratifiedSampling} | R Documentation |
q from w
Description
This function finds the matrix q
form a particular w
.
Usage
qfromw(w, n)
Arguments
w |
A vector of weights. |
n |
An integer that is equal to the sum of the inclusion probabilities. |
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).
Value
A matrix of size N
x n
, where N
is equal to the length of the vector w
.
References
Tille, Y. (2006), Sampling Algorithms, springer
[Package StratifiedSampling version 0.4.2 Index]