weights: Model weights

weightsR Documentation

Model weights

Description

Extracts weights from model objects. The weights are re-scaled to up to the total number of observations in the fitting procedure.

Usage

## S4 method for signature 'EL'
weights(object, ...)

Arguments

object

An object that inherits from EL.

...

Further arguments passed to methods.

Value

A numeric vector of the re-scaled weights.

References

Glenn N, Zhao Y (2007). “Weighted Empirical Likelihood Estimates and Their Robustness Properties.” Computational Statistics & Data Analysis, 51(10), 5130–5141. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.csda.2006.07.032")}.

See Also

EL

Examples

data("airquality")
x <- airquality$Wind
w <- airquality$Day
fit <- el_mean(x, par = 10, weights = w)
weights(fit)

melt documentation built on May 31, 2023, 7:12 p.m.