The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
evmr is an R package for extreme value modeling
using the r-largest order statistics framework.
The package provides tools for fitting, analyzing, and comparing extreme value models that use the largest r observations within each block.
The package is designed for applications in
where multiple extreme events may occur within the same block.
# install.packages("remotes")
remotes::install_github("yire-shin/evmr")A typical workflow in evmr is
random generation → model fitting → return level estimation → profile likelihood → r selection
For each supported model, the package provides a consistent set of functions:
| function | description |
|---|---|
| random generator | simulate r-largest order statistics |
.fit() |
fit the model by maximum likelihood |
.rl() |
estimate return levels |
.prof() |
obtain profile likelihood confidence intervals |
Edtest() |
perform entropy difference based sequential testing for selecting r |
The rK4D model is based on the four-parameter Kappa distribution.
x <- rk4dr(
n = 50, r = 3,
loc = 10, scale = 2,
shape1 = 0.1, shape2 = 0.1
)
head(x$rmat)fit <- rk4d.fit(x$rmat, num_inits = 5)
fit$mlerk4d.rl(fit)rk4d.prof(fit, m = 100, xlow = 12, xup = 25)rk4dEdtest(x$rmat)Shin, Y., & Park, J.-S. (2023).
Modeling climate extremes using the four-parameter kappa distribution
for r-largest order statistics.
Weather and Climate Extremes.
https://doi.org/10.1016/j.wace.2022.100533
Hosking, J. R. M. (1994).
The four-parameter Kappa distribution. Cambridge University
Press.
Martins, E. S., & Stedinger, J. R. (2000).
Generalized maximum-likelihood generalized extreme-value quantile
estimators for hydrologic data.
Water Resources Research.
https://doi.org/10.1029/1999WR900330
Coles, S., & Dixon, M. (1999).
Likelihood-based inference for extreme value models.
Extremes.
https://doi.org/10.1023/A:1009905222644
The rGLO model is based on the generalized logistic distribution.
x <- rglor(
n = 50, r = 3,
loc = 10, scale = 2,
shape = 0.1
)
head(x$rmat)fit <- rglo.fit(x$rmat, num_inits = 5)
fit$mlerglo.rl(fit)rglo.prof(fit, m = 100, xlow = 12, xup = 25)rgloEdtest(x$rmat)Ahmad et al. (1988).
Log-logistic flood frequency analysis.
Journal of Hydrology.
https://doi.org/10.1016/0022-1694(88)90015-7
Coles, S. (2001).
An Introduction to Statistical Modeling of Extreme
Values.
Springer.
https://doi.org/10.1007/978-1-4471-3675-0
Shin, Y., & Park, J.-S. (2024).
Generalized logistic model for r-largest order statistics with
hydrological application.
Stochastic Environmental Research and Risk Assessment.
https://doi.org/10.1007/s00477-023-02642-7
The rGGD model is based on the generalized Gumbel distribution.
x <- rggdr(
n = 50, r = 3,
loc = 10, scale = 2,
shape = 0.1
)
head(x$rmat)fit <- rggd.fit(x$rmat, num_inits = 5)
fit$mlerggd.rl(fit)rggd.prof(fit, m = 100, xlow = 12, xup = 25)rggdEdtest(x$rmat)Coles, S. (2001).
An Introduction to Statistical Modeling of Extreme
Values.
Springer.
https://doi.org/10.1007/978-1-4471-3675-0
Jeong et al. (2014).
A three-parameter kappa distribution with hydrologic application: A
generalized Gumbel distribution.
https://doi.org/10.1007/s00477-014-0865-8
Shin, Y., & Park, J.-S. (2025).
Generalized Gumbel model for r-largest order statistics with application
to peak streamflow.
Scientific Reports.
https://doi.org/10.1038/s41598-024-83273-y
The rGD model is based on the Gumbel distribution.
x <- rgdr(
n = 50, r = 3,
loc = 10, scale = 2
)
head(x$rmat)fit <- rgd.fit(x$rmat, num_inits = 5)
fit$mlergd.rl(fit)rgd.prof(fit, m = 100, xlow = 12, xup = 25)rgdEdtest(x$rmat)Coles, S., & Dixon, M. (1999).
Likelihood-based inference for extreme value models.
Extremes.
https://doi.org/10.1023/A:1009905222644
Jeong et al. (2014).
A three-parameter kappa distribution with hydrologic application: A
generalized Gumbel distribution.
https://doi.org/10.1007/s00477-014-0865-8
Shin, Y., & Park, J.-S. (2025).
Generalized Gumbel model for r-largest order statistics with application
to peak streamflow.
Scientific Reports.
https://doi.org/10.1038/s41598-024-83273-y
The rLD model is based on the logistic distribution.
x <- rldr(
n = 50, r = 3,
loc = 10, scale = 2
)
head(x$rmat)fit <- rld.fit(x$rmat, num_inits = 5)
fit$mlerld.rl(fit)rld.prof(fit, m = 100, xlow = 12, xup = 25)rldEdtest(x$rmat)Ahmad et al. (1988).
Log-logistic flood frequency analysis.
Journal of Hydrology.
https://doi.org/10.1016/0022-1694(88)90015-7
Coles, S. (2001).
An Introduction to Statistical Modeling of Extreme
Values.
Springer.
https://doi.org/10.1007/978-1-4471-3675-0
Shin, Y., & Park, J.-S. (2024).
Generalized logistic model for r-largest order statistics with
hydrological application.
Stochastic Environmental Research and Risk Assessment.
https://doi.org/10.1007/s00477-023-02642-7
The package also provides a unified wrapper function,
evmr(), for fitting multiple models simultaneously.
The following example uses the built-in bangkok
dataset.
library(evmr)
data(bangkok)
evmr(
bangkok,
models = c("rk4d", "rglo", "rggd", "rgd", "rld"),
num_inits = 5
)This returns a combined summary table containing
Ahmad et al. (1988).
Log-logistic flood frequency analysis.
Journal of Hydrology.
https://doi.org/10.1016/0022-1694(88)90015-7
Bader, B., Yan, J., & Zhang, X. (2017).
Automated selection of r for the r-largest order statistics
approach.
Statistics and Computing.
https://doi.org/10.1007/s11222-016-9697-3
Coles, S. (2001).
An Introduction to Statistical Modeling of Extreme
Values.
Springer.
https://doi.org/10.1007/978-1-4471-3675-0
Coles, S., & Dixon, M. (1999).
Likelihood-based inference for extreme value models.
Extremes.
https://doi.org/10.1023/A:1009905222644
Hosking, J. R. M. (1994).
The four-parameter Kappa distribution. Cambridge University
Press.
Martins, E. S., & Stedinger, J. R. (2000).
Generalized maximum-likelihood generalized extreme-value quantile
estimators for hydrologic data.
Water Resources Research.
https://doi.org/10.1029/1999WR900330
Jeong et al. (2014).
A three-parameter kappa distribution with hydrologic application: A
generalized Gumbel distribution.
https://doi.org/10.1007/s00477-014-0865-8
Shin, Y., & Park, J.-S. (2023).
Modeling climate extremes using the four-parameter kappa distribution
for r-largest order statistics.
Weather and Climate Extremes.
https://doi.org/10.1016/j.wace.2022.100533
Shin, Y., & Park, J.-S. (2024).
Generalized logistic model for r-largest order statistics with
hydrological application.
Stochastic Environmental Research and Risk Assessment.
https://doi.org/10.1007/s00477-023-02642-7
Shin, Y., & Park, J.-S. (2025).
Generalized Gumbel model for r-largest order statistics with application
to peak streamflow.
Scientific Reports.
https://doi.org/10.1038/s41598-024-83273-y
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.