# NOT RUN {
# We need the evir package
got_evir <- requireNamespace("evir", quietly = TRUE)
if (got_evir) {
library(evir)
# An example from the evir::gev documentation
data(bmw)
out <- gev(bmw, "month")
adj_out <- alogLik(out)
summary(adj_out)
# An example from the evir::gpd documentation
data(danish)
out <- gpd(danish, 10)
adj_out <- alogLik(out)
summary(adj_out)
# An example from the evir::pot documentation
# We use lax::pot_refit() to return the input data
out <- pot_refit(danish, 10)
adj_out <- alogLik(out)
summary(adj_out)
}
# }
Run the code above in your browser using DataLab