dgaps_imt | R Documentation |
D
-gaps modelPerforms an information matrix test (IMT) to diagnose misspecification of
the D
-gaps model of Holesovsky and Fusek (2020).
dgaps_imt(data, u, D = 1, inc_cens = TRUE)
data |
A numeric vector or numeric matrix of raw data. If If |
u , D |
Numeric vectors. Any values in |
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. See |
The general approach follows Suveges and Davison (2010).
The D
-gaps IMT is performed a over grid of all
combinations of threshold and D
in the vectors u
and D
. If the estimate of \theta
is 0 then the
IMT statistic, and its associated p
-value is NA
.
An object (a list) of class c("dgaps_imt", "exdex")
containing
imt |
A |
p |
A |
theta |
A |
u , D |
The input |
Holesovsky, J. and Fusek, M. Estimation of the extremal index using censored distributions. Extremes 23, 197-213 (2020). \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/s10687-020-00374-3")}
Suveges, M. and Davison, A. C. (2010) Model misspecification in peaks over threshold analysis, Annals of Applied Statistics, 4(1), 203-221. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1214/09-AOAS292")}
dgaps
for maximum likelihood estimation of the
extremal index \theta
using the D
-gaps model.
### Newlyn sea surges
u <- quantile(newlyn, probs = seq(0.1, 0.9, by = 0.1))
imt <- dgaps_imt(newlyn, u = u, D = 1:5)
### S&P 500 index
u <- quantile(sp500, probs = seq(0.1, 0.9, by = 0.1))
imt <- dgaps_imt(sp500, u = u, D = 1:5)
### Cheeseboro wind gusts (a matrix containing some NAs)
probs <- c(seq(0.5, 0.98, by = 0.025), 0.99)
u <- quantile(cheeseboro, probs = probs, na.rm = TRUE)
imt <- dgaps_imt(cheeseboro, u = u, D = 1:5)
### Uccle July temperatures
probs <- c(seq(0.7, 0.98, by = 0.025), 0.99)
u <- quantile(uccle720m, probs = probs, na.rm = TRUE)
imt <- dgaps_imt(uccle720m, u = u, D = 1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.