README.md

tcG

A R package for fitting meta-Gaussian models to precipitation data

Install by downloading the zip file and use devtools::install("path/tcG-main") (replace path with the location of the zip file).

Introduction

This package contains all the functions needed to fit the models presented in Boutigny et al. (2023).

The main functions of the package tcG.fit, extGP.fit are used to fit the models and res.plot can be used to draw plots. You can check the documentation pages.

Two types of models can be fitted with this package, all aiming at modeling precipitation which we will note $Y$.

Meta-Gaussian models

A meta-Gaussian model can be written as

where is the indicator function equals to 1 if the condition is true and 0 else. is the parameter that controls the probability of dry measurement. The transformation is called the anamorphosis, and 4 options are available in the package:

is the minimal value that can be observed. The choice of the anamorphosis will always be controlled by the argument name.

Extended Generalized Pareto model

This model is the one of Naveau et al. (2016). It models only the positive part of the distribution and can be written as

where , is the cdf of a GPD and is the minimal value that can be observed.

Data

guip is the data set provided with the package. It's the 2006-2017 Automn rainfall series at a 6 minutes time step recorded in Guipavas (France) provided by Météo France.

Examples

Examples showing how to use the package are shown in the RMarkdown, html and pdf files available in /vignettes.

Contact

Please feel free to ask any questions at: marie.boutigny1[at]gmail.com



mbtgy/tcG documentation built on Oct. 19, 2023, 3:10 p.m.