% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estimatingweight.R
\name{estimating_weight}
\alias{estimating_weight}
\title{Estimate observation weights for measurement error models}
\usage{
estimating_weight(
  W,
  method = c("uniform", "minimax", "quasi-likelihood"),
  gamma = NULL
)
}
\arguments{
\item{W}{Numeric array of dimension \code{n x p x J} containing replicate
measurements of contaminated covariates. Missing replicates should be
coded as \code{NA}.}

\item{method}{Character string specifying which weights to return.
One of \code{"all"}, \code{"uniform"}, \code{"minimax"},
or \code{"quasi-likelihood"}.}

\item{gamma}{Optional non-negative regularisation parameter used in the
quasi-likelihood weights. Defaults to \code{log(n)}.}
}
\value{
A numeric matrix with \code{n} rows. Columns correspond to the
  requested weighting schemes.
}
\description{
Computes observation-specific weights using uniform, minimax, and
quasi-likelihood weighting schemes based on replicate measurements of
contaminated covariates.
}
\keyword{internal}
