This is a wrapper function to obtain PWM or MLE estimates for the extended GP models of Naveau et al. (2016) for rainfall intensities. The function calculates confidence intervals by means of nonparametric percentile bootstrap and returns histograms and QQ plots of the fitted distributions. The function handles both censoring and rounding.
Arguments
- data
data vector.
- model
integer ranging from 0 to 4 indicating the model to select (see
extgp
).- method
string; either
'mle'
for maximum likelihood, or'pwm'
for probability weighted moments, or both.- init
vector of initial values, comprising of \(p\), \(\kappa\), \(\delta\),\(\sigma\),\(\xi\) (in that order) for the optimization. All parameters may not appear depending on
model
.- censoring
numeric vector of length 2 containing the lower and upper bound for censoring;
censoring=c(0,Inf)
is equivalent to no censoring.- rounded
numeric giving the instrumental precision (and rounding of the data), with default of 0.
- confint
logical; should confidence interval be returned (percentile bootstrap).
- R
integer; number of bootstrap replications.
- ncpus
integer; number of CPUs for parallel calculations (default: 1).
- plots
logical; whether to produce histogram and density plots.
Details
The different models include the following transformations:
model
0 corresponds to uniform carrier, \(G(u)=u\).model
1 corresponds to a three parameters family, with carrier \(G(u)=u^\kappa\).model
2 corresponds to a three parameters family, with carrier \(G(u)=1-V_\delta((1-u)^\delta)\).model
3 corresponds to a four parameters family, with carrier $$G(u)=1-V_\delta((1-u)^\delta))^{\kappa/2}$$.model
4 corresponds to a five parameter model (a mixture oftype
2, with \(G(u)=pu^\kappa + (1-p)*u^\delta\)