piktfrompik: pikt from pik

View source: R/RcppExports.R

piktfrompikR Documentation

pikt from pik

Description

This function finds the pikt from an initial pik.

Usage

piktfrompik(pik, max_iter = 500L, tol = 1e-08)

Arguments

pik

A vector of inclusion probabilities. The vector must contains only value that are not integer.

max_iter

An integer that specify the maximum iteration in the Newton-Raphson algorithm. Default 500.

tol

A scalar that specify the tolerance convergence for the Newton-Raphson algorithm. Default 1e-8.

Details

The management of probabilities equal to 0 or 1 is done in the cps function.

pikt is the vector of inclusion probabilities of a Poisson sampling with the right parameter. The vector is found by Newtwon-Raphson algorithm.

More details could be find in Tille (2006).

Value

An updated vector of inclusion probability.

References

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


StratifiedSampling documentation built on April 4, 2025, 5:11 a.m.