| dgaps_confint {exdex} | R Documentation |
Confidence intervals for the extremal index \theta for "dgaps"
objects
Description
confint method for objects of class c("dgaps", "exdex").
Computes confidence intervals for \theta based on an object returned
from dgaps. Two types of interval may be returned:
(a) intervals based on approximate large-sample normality of the estimator
of \theta, which are symmetric about the point estimate,
and (b) likelihood-based intervals. The plot method plots the
log-likelihood for \theta, with the required confidence interval
indicated on the plot.
Usage
## S3 method for class 'dgaps'
confint(
object,
parm = "theta",
level = 0.95,
interval_type = c("both", "norm", "lik"),
conf_scale = c("theta", "log"),
constrain = TRUE,
se_type = c("observed", "expected"),
...
)
## S3 method for class 'confint_dgaps'
plot(x, ...)
## S3 method for class 'confint_dgaps'
print(x, ...)
Arguments
object |
An object of class |
parm |
Specifies which parameter is to be given a confidence interval.
Here there is only one option: the extremal index |
level |
The confidence level required. A numeric scalar in (0, 1). |
interval_type |
A character scalar: |
conf_scale |
A character scalar. If If |
constrain |
A logical scalar. If |
se_type |
A character scalar. Should the confidence intervals for the
|
... |
|
x |
an object of class |
Details
Two type of interval are calculated: (a) an interval based on the
approximate large sample normality of the estimator of \theta
(if conf_scale = "theta") or of \log\theta
(if conf_scale = "log") and (b) a likelihood-based interval,
based on the approximate large sample chi-squared, with 1 degree of
freedom, distribution of the log-likelihood ratio statistic.
print.confint_dgaps prints the matrix of confidence
intervals for \theta.
Value
A list of class c("confint_dgaps", "exdex") containing the following components.
cis |
A matrix with columns giving the lower and upper confidence
limits. These are labelled as (1 - level)/2 and 1 - (1 - level)/2 in
% (by default 2.5% and 97.5%).
The row names indicate the type of interval:
|
call |
The call to |
object |
The input object |
level |
The input |
plot.confint_dgaps: nothing is returned.
print.confint_dgaps: the argument x, invisibly.
References
Holesovsky, J. and Fusek, M. Estimation of the extremal index using censored distributions. Extremes 23, 197-213 (2020). doi:10.1007/s10687-020-00374-3
See Also
dgaps for estimation of the extremal index
\theta using a semiparametric maxima method.
Examples
u <- quantile(newlyn, probs = 0.90)
theta <- dgaps(newlyn, u)
cis <- confint(theta)
cis
plot(cis)