This package is an adaptation of the Matalb tsEVA toolbox developed by Lorenzo Mentaschi availaible here: https://github.com/menta78/tsEva
It contains an implementation of the Transformed-Stationary (TS) methodology for non-stationary EVA as described in Mentaschi et al. (2016). In synthesis this approach consists in (i) transforming a non-stationary time series into a stationary one to which the stationary EVA theory can be applied; and (ii) reverse-transforming the result into a non-stationary extreme value distribution.
You can install the development version of RtsEva from GitHub with:
# install.packages("devtools")
::install_github("Alowis/RtsEva") devtools
This is a basic example which shows you how to solve a common problem:
library(RtsEva)
# Load a time series
<- ArdecheStMartin
timeAndSeries # go from six-hourly values to daily max
<- max_daily_value(timeAndSeries)
timeAndSeries
# set a temporal window for the computation of running statistics
<- 30*365 # 30 years
timeWindow
# Run the non-stationnary EVA
<- TsEvaNs(timeAndSeries, timeWindow,
result transfType = 'trendPeaks',tail = 'high')
After fitting the non-stationnay EVA, the package offers functions to visualize the plots
For any questions or inquiries, please contact the package maintainer at alois.tilloy@ec.europa.eu