c_bound: C bound

View source: R/RcppExports.R

c_boundR Documentation

C bound

Description

This function is returning the number of unit that we need such that some conditions are fulfilled. See Details

Usage

c_bound(pik)

Arguments

pik

vector of the inclusion probabilities.

Details

The function is computing the number of unit K that we need to add such that the following conditions are fulfilled :

  • \sum_{k = 1}^K \pi_k \geq 1

  • \sum_{k = 1}^K 1 - \pi_k \geq 1

  • Let c be the constant such that \sum_{k = 2}^K min(c\pi_k,1) = n , we must have that \pi_1 \geq 1- 1/c

Value

An integer value, the number of units that we need to respect the constraints.

See Also

osod


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