confint {melt} | R Documentation |
Confidence interval for model parameters
Description
Computes confidence intervals for one or more parameters in a model.
Usage
## S4 method for signature 'EL'
confint(object, parm, level = 0.95, cv = NULL, control = NULL)
## S4 method for signature 'ELMT'
confint(object, cv = NULL, control = NULL)
Arguments
object |
|
parm |
A specification of which parameters are to be given confidence intervals, either a vector of numbers or a vector of names. If missing, all parameters are considered. |
level |
A single numeric for the confidence level required. Defaults to
|
cv |
A single numeric for the critical value for calibration of
empirical likelihood ratio statistic. Defaults to |
control |
An object of class ControlEL constructed by
|
Value
A matrix with columns giving lower and upper confidence limits for
each parameter. In contrast to other methods that rely on studentization,
the lower and upper limits obtained from empirical likelihood do not
correspond to the (1 - level) / 2
and 1 - (1 - level) / 2
in %,
respectively.
References
Owen A (1990). “Empirical Likelihood Ratio Confidence Regions.” The Annals of Statistics, 18(1), 90–120. doi:10.1214/aos/1176347494.
See Also
EL, ELMT, confreg()
, elt()
,
el_control()
Examples
data("mtcars")
fit <- el_lm(mpg ~ ., data = mtcars)
confint(fit, parm = c(2, 3))