dgaps_stat {exdex} | R Documentation |
Sufficient statistics for the left-censored inter-exceedances time model
Description
Calculates sufficient statistics for the the left-censored inter-exceedances
time -gaps model for the extremal index
.
Usage
dgaps_stat(data, u, q_u, D = 1, inc_cens = TRUE)
Arguments
data |
A numeric vector of raw data. No missing values are allowed. |
u |
A numeric scalar. Extreme value threshold applied to data. |
q_u |
A numeric scalar. An estimate of the probability with which
the threshold |
D |
A numeric scalar. Run parameter |
inc_cens |
A logical scalar indicating whether or not to include contributions from right-censored inter-exceedance times relating to the first and last observation. It is known that these times are greater than or equal to the time observed. See Attalides (2015) for details. |
Details
The sample inter-exceedance times are
,
where
are uncensored and
and
are right-censored. Under the assumption that the
inter-exceedance times are independent, the log-likelihood of the
-gaps model is given by
where
-
is the threshold exceedance probability, estimated by the proportion of threshold exceedances,
-
,
-
if
and
otherwise,
-
is the number of sample inter-exceedance times that are left-censored, that is, are less than or equal to
,
(apart from an adjustment for the contributions of
and
)
is the number of inter-exceedance times that are uncensored, that is, are greater than
,
specifically, if
inc_cens = TRUE
thenis equal to the number of
that are uncensored plus
.
The differing treatment of uncensored and censored -gaps reflects
differing contributions to the likelihood. Right-censored
inter-exceedance times whose observed values are less than or equal to
add no information to the likelihood because we do not know to
which part of the likelihood they should contribute.
If then we are in the degenerate case where there is one
cluster (all inter-exceedance times are left-censored) and the likelihood
is maximized at
.
If then all exceedances occur singly (no inter-exceedance
times are left-censored) and the likelihood is maximized at
.
Value
A list containing the sufficient statistics, with components
N0 |
the number of left-censored inter-exceedance times. |
N1 |
contribution from inter-exceedance times that are not left-censored (see Details). |
sum_qtd |
the sum of the (scaled) inter-exceedance times
that are not left-censored, that is,
|
n_dgaps |
the number of inter-exceedances that contribute to the log-likelihood. |
q_u |
the sample proportion of values that exceed the threshold. |
D |
the input value of |
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
Attalides, N. (2015) Threshold-based extreme value modelling, PhD thesis, University College London. https://discovery.ucl.ac.uk/1471121/1/Nicolas_Attalides_Thesis.pdf
See Also
dgaps
for maximum likelihood estimation of the
extremal index using the
-gaps model.
Examples
u <- quantile(newlyn, probs = 0.90)
dgaps_stat(newlyn, u = u, D = 1)