Computes observation-specific weights using uniform, minimax, and quasi-likelihood weighting schemes based on replicate measurements of contaminated covariates.
estimating_weight(
W,
method = c("uniform", "minimax", "quasi-likelihood"),
gamma = NULL
)A numeric matrix with n rows. Columns correspond to the
requested weighting schemes.
Numeric array of dimension n x p x J containing replicate
measurements of contaminated covariates. Missing replicates should be
coded as NA.
Character string specifying which weights to return.
One of "all", "uniform", "minimax",
or "quasi-likelihood".
Optional non-negative regularisation parameter used in the
quasi-likelihood weights. Defaults to log(n).