weights {melt} | R 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. doi:10.1016/j.csda.2006.07.032.
See Also
Examples
data("airquality")
x <- airquality$Wind
w <- airquality$Day
fit <- el_mean(x, par = 10, weights = w)
weights(fit)
[Package melt version 1.11.4 Index]