Learn R Programming

melt (version 1.11.3)

weights: 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 EL
weights(object, ...)

Value

A numeric vector of the re-scaled weights.

Arguments

object

An object that inherits from EL.

...

Further arguments passed to methods.

References

Glenn N, Zhao Y (2007). ``Weighted Empirical Likelihood Estimates and Their Robustness Properties.'' Computational Statistics & Data Analysis, 51(10), 5130--5141. tools:::Rd_expr_doi("10.1016/j.csda.2006.07.032").

See Also

EL

Examples

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

Run the code above in your browser using DataLab