[Paper Review] evgam: An R package for Generalized Additive Extreme Value Models
This paper introduces the R package evgam for fitting Generalized Additive Models (GAMs) to extreme value distributions, including the Generalized Extreme Value (GEV) and Generalized Pareto Distribution (GPD) families. It enables flexible, non-stationary modeling of extreme events through smooth terms for covariates, with applications to censored data, temporal and spatial dependence, and return level estimation under non-stationarity, demonstrated on Colorado precipitation and Fort Collins temperature data with key results like 100-year return level estimates of 39.37°C and 39.1°C.
This article introduces the R package evgam. The package provides functions for fitting extreme value distributions. These include the generalized extreme value and generalized Pareto distributions. The former can also be fitted through a point process representation. evgam supports quantile regression via the asymmetric Laplace distribution, which can be useful for estimating high thresholds, sometimes used to discriminate between extreme and non-extreme values. The main addition of evgam is to let extreme value distribution parameters have generalized additive model forms, which can be objectively estimated using Laplace's method. Illustrative examples fitting various distributions with various specifications are given. These include daily precipitation accumulations for part of Colorado, US, used to illustrate spatial models, and daily maximum temperatures for Fort Collins, Colorado, US, used to illustrate temporal models.
Motivation & Objective
- To develop a flexible, user-friendly R package for fitting generalized additive models to extreme value distributions, particularly GEV and GPD, enabling non-stationary modeling of extreme events.
- To address the challenge of modeling non-stationary extremes in environmental data by allowing smooth functions of covariates (e.g., time, space, elevation) in location, scale, and shape parameters.
- To support uncertainty quantification for extreme value parameters and return levels using standard errors and the Delta method.
- To extend extreme value modeling to censored response data and clustered threshold exceedances, improving realism in hydrological and climatological applications.
- To provide practical tools for estimating return levels under non-stationary conditions, including cyclic and time-varying thresholds.
Proposed method
- The package uses penalized likelihood estimation within a GAM framework to fit GEV and GPD models with smooth terms for covariates, using P-splines and tensor products for spatial and interaction effects.
- For censored data, the response is modeled as interval-censored using the `cens(lo, hi)` family, with interval bounds derived from measurement precision (e.g., ±2.5 mm for precipitation).
- Spatial smooths are constructed via tensor products of cubic regression splines (e.g., `te(lon, lat, k = c(6,8))`) to model spatial non-stationarity in extreme value parameters.
- Time-varying thresholds are modeled using quantile regression (e.g., 99th percentile) to define excesses, with clustering accounted for via the extremal index estimated using the moment-based method of Ferro & Segers (2003).
- Return levels are estimated using the `qev()` function, which applies the generalized extreme value and generalized Pareto distribution formulas with appropriate weights and extremal index corrections.
- Uncertainty in parameters and return levels is quantified using standard errors via the `predict()` function with `se.fit = TRUE`, and the Delta method is applied for return level inference.
Experimental results
Research questions
- RQ1How can generalized additive models be effectively extended to the generalized extreme value and generalized Pareto distributions for non-stationary extreme value analysis?
- RQ2What is the impact of spatial and temporal covariates on the estimation of extreme value parameters and return levels in environmental data?
- RQ3How can censored or imprecisely measured data be properly modeled within extreme value frameworks using GAMs?
- RQ4How can clustering of extreme events (via the extremal index) be incorporated into return level estimation for non-stationary GPD models?
- RQ5What is the most computationally efficient way to estimate return levels across a full annual cycle when the model is cyclic and smooth?
Key findings
- The 100-year return level for annual maximum temperatures in Fort Collins, estimated using monthly maxima and a stationary GEV model, is 39.37°C, with weights derived from month lengths and 365.25-day year.
- The 100-year return level for daily threshold exceedances using a non-stationary GPD model with time-varying thresholds and clustering correction is 39.1°C, based on a 50-point cyclic evaluation of the annual cycle.
- The extremal index estimate of 0.498 indicates an average cluster size of 2.01 days for threshold exceedances, justifying the need for clustering correction in return level estimation.
- Censored response modeling using interval bounds (e.g., ±2.5 mm for precipitation) improves realism in hydrological extremes, with tensor product smooths enabling spatially varying effects.
- Using only 50 cyclic points instead of 365 for return level estimation maintains accuracy while reducing computational cost, demonstrating efficiency in smooth cyclic modeling.
- Standard errors for GEV parameters and return levels are reliably estimated using the Delta method via the `predict()` function with `se.fit = TRUE`, enabling uncertainty quantification in non-stationary models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.