c_bound2: C bound

View source: R/RcppExports.R

c_bound2R 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_bound2(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 :

  • ∑_{k = 1}^K π_k ≥q 1

  • ∑_{k = 1}^K 1 - π_k ≥q 1

  • Let c be the constant such that ∑_{k = 2}^K min(cπ_k,1) = n , we must have that π_1 ≥q 1- 1/c

Value

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

Author(s)

Raphael Jauslin raphael.jauslin@unine.ch

See Also

osod


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