This function is inspired by the function calib
of the package sampling. It computes the g-weights of the calibration estimator.
calibRaking(Xs, d, total, q, max_iter = 500L, tol = 1e-09)
A vector, the value of the g-weights.
A matrix of calibration variables.
A vector, the initial weights.
A vector that represents the initial weights.
A vector of positive value that account for heteroscedasticity.
An integer, the maximum number of iterations. Default = 500.
A scalar that represents the tolerance value for the algorithm. Default = 1e-9.
Raphaël Jauslin raphael.jauslin@unine.ch
More details on the different calibration methods can be read in Tillé Y. (2020).
Tillé, Y. (2020). Sampling and estimation from finite populations. Wiley, New York