kgaps {exdex} | R Documentation |
Maximum likelihood estimation for the K
-gaps model
Description
Calculates maximum likelihood estimates of the extremal index \theta
based on the K
-gaps model for threshold inter-exceedances times of
Suveges and Davison (2010).
Usage
kgaps(data, u, k = 1, inc_cens = TRUE)
Arguments
data |
A numeric vector or numeric matrix of raw data. If If |
u |
A numeric scalar. Extreme value threshold applied to data. |
k |
A non-negative 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 observations. It is known that these times are greater
than or equal to the time observed. See Attalides (2015) for details.
If |
Details
If inc_cens = FALSE
then the maximum likelihood estimate of
the extremal index \theta
under the K
-gaps model of
Suveges and Davison (2010) is calculated.
If inc_cens = TRUE
then information from right-censored
first and last inter-exceedance times is also included in the likelihood
to be maximized, following Attalides (2015). The form of the
log-likelihood is given in the Details section of
kgaps_stat
.
It is possible that the estimate of \theta
is equal to 1, and also
possible that it is equal to 0. kgaps_stat
explains the
respective properties of the data that cause these events to occur.
Value
An object (a list) of class c("kgaps", "exdex")
containing
theta |
The maximum likelihood estimate (MLE) of
|
se |
The estimated standard error of the MLE, calculated
using an algebraic expression for the observed information.
If |
se_exp |
The estimated standard error of the MLE,
calculated using an algebraic expression for the expected information.
If the estimate of |
ss |
The list of summary statistics returned from
|
k , u , inc_cens |
The input values of |
max_loglik |
The value of the log-likelihood at the MLE. |
call |
The call to |
References
Suveges, M. and Davison, A. C. (2010) Model misspecification in peaks over threshold analysis, Annals of Applied Statistics, 4(1), 203-221. doi:10.1214/09-AOAS292
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
kgaps_confint
to estimate confidence intervals
for \theta
.
kgaps_methods
for S3 methods for "kgaps"
objects.
kgaps_imt
for the information matrix test, which
may be used to inform the choice of the pair (u, k
).
choose_uk
for a diagnostic plot based on
kgaps_imt
.
kgaps_stat
for the calculation of sufficient
statistics for the K
-gaps model.
kgaps_post
in the
revdbayes
package for Bayesian inference
about \theta
using the K
-gaps model.
Examples
### S&P 500 index
u <- quantile(sp500, probs = 0.60)
theta <- kgaps(sp500, u)
theta
summary(theta)
coef(theta)
nobs(theta)
vcov(theta)
logLik(theta)
### Newlyn sea surges
u <- quantile(newlyn, probs = 0.60)
theta <- kgaps(newlyn, u, k = 2)
theta
summary(theta)
### Cheeseboro wind gusts
theta <- kgaps(cheeseboro, 45, k = 3)
theta
summary(theta)