weights | R Documentation |
Extracts weights from model objects. The weights are re-scaled to up to the total number of observations in the fitting procedure.
## S4 method for signature 'EL'
weights(object, ...)
object |
An object that inherits from EL. |
... |
Further arguments passed to methods. |
A numeric vector of the re-scaled weights.
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")}.
EL
data("airquality")
x <- airquality$Wind
w <- airquality$Day
fit <- el_mean(x, par = 10, weights = w)
weights(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.