gencalibRaking | R Documentation |
This function is inspired by the function calib
of the package sampling. It computes the g-weights of the calibration estimator.
gencalibRaking(Xs, Zs, d, total, q, max_iter = 500L, tol = 1e-09)
Xs |
A matrix of calibration variables. |
Zs |
A matrix of instrumental variables with same dimension as Xs. |
d |
A vector, the initial weights. |
total |
A vector that represents the initial weights. |
q |
A vector of positive value that account for heteroscedasticity. |
max_iter |
An integer, the maximum number of iterations. Default = 500. |
tol |
A scalar that represents the tolerance value for the algorithm. Default = 1e-9. |
More details on the different calibration methods can be read in Tillé Y. (2020).
A vector, the value of the g-weights.
Tillé, Y. (2020). Sampling and estimation from finite populations. Wiley, New York
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.