# NOT RUN {
# We need the POT package
got_POT <- requireNamespace("POT", quietly = TRUE)
if (got_POT) {
library(POT)
# An example from the POT::fitgpd documentation.
set.seed(4082019)
x <- POT::rgpd(200, 1, 2, 0.25)
fit <- fitgpd(x, 1, "mle")
adj_fit <- alogLik(fit)
}
# }
Run the code above in your browser using DataLab