qfromw: q from w

View source: R/RcppExports.R

qfromwR 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.

Author(s)

Raphaël Jauslin raphael.jauslin@unine.ch

References

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


StratifiedSampling documentation built on Oct. 26, 2022, 5:09 p.m.