Learn R Programming

StratifiedSampling (version 0.4.1)

piktfrompik: pikt from pik

Description

This function finds the pikt from an initial pik.

Usage

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

Value

An updated vector of inclusion probability.

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.

Author

Raphaël Jauslin raphael.jauslin@unine.ch

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

References

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