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.

References

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


RJauslin/StratifiedSampling documentation built on Feb. 5, 2025, 4:18 a.m.