el_sd {melt} | R Documentation |
Empirical likelihood for the standard deviation
Description
Computes empirical likelihood for the standard deviation.
Usage
el_sd(x, mean, sd, weights = NULL, control = el_control())
Arguments
x |
A numeric vector, or an object that can be coerced to a numeric vector. |
mean |
A single numeric for the (known) mean value. |
sd |
A positive single numeric for the parameter value to be tested. |
weights |
An optional numeric vector of weights to be used in the
fitting process. The length of the vector must be the same as the length of
|
control |
An object of class ControlEL constructed by
|
Details
Let be independent and identically random variable from an
unknown distribution
for
. We assume that
is known and that
has a variance
. Given a value of
, the
(profile) empirical likelihood ratio is defined by
el_sd()
computes the empirical log-likelihood ratio statistic
, along with other values in SD.
Value
An object of class SD.
See Also
EL, SD, el_mean()
, elt()
,
el_control()
Examples
data("women")
x <- women$height
w <- women$weight
fit <- el_sd(x, mean = 65, sd = 5, weights = w)
fit
summary(fit)