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).
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$.
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:
gp
(for Generalized Pareto): power
: quadratic-power
: power-exp
: is the minimal value that can be observed. The choice of the anamorphosis will always be controlled by the argument
name
.
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.
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 showing how to use the package are shown in the RMarkdown, html and pdf files available in /vignettes
.
Please feel free to ask any questions at: marie.boutigny1[at]gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.