Estimate generalized Pareto distribution parameters over a range of values, using maximum (penalized) likelihood.
gpdRangeFit(data, umin=quantile(data, .05), umax=quantile(data, .95),
nint = 10, penalty = "gaussian", priorParameters = NULL, alpha=0.05,
cov="observed")
# S3 method for gpdRangeFit
print(x, ...)
# S3 method for gpdRangeFit
summary(object, ...)
# S3 method for summary.gpdRangeFit
print(x, ...)
# S3 method for gpdRangeFit
plot(x, xlab = "Threshold", ylab = NULL, main = NULL, addNexcesses=TRUE, ...)
# S3 method for gpdRangeFit
ggplot(data, mapping, xlab="Threshold", ylab=NULL,
main=NULL, fill="orange", col="blue", addNexcesses = TRUE, textsize=4, ...,
environment)
The data vector to be modelled.
The minimum threshold above which to estimate the parameters.
The maximum threshold above which to estimate the parameters.
The number of thresholds at which to perform the estimation.
The type of penalty to be used in the maximum penalized likelihood estimation. Should be either "gaussian" or "none". Defaults to "gaussian".
Parameters to be used for the penalty function. See
the help for evm
for more informaiton.
100(1 - alpha)% confidence intervals will be plotted with the
point estimates. Defaults to alpha = 0.05
.
How to compute the covariance matrix of the parameters. Defaults
to cov = "observed"
in which case the observed information matrix is
used, if the info
element of the texmexFamily
object is
present. See more detailed documentation of this argument in
evm
.
Arguments to print
and summary
functions.
Label for the x-axis.
Label for the y-axis.
The main title.
Annotate top axis with numbers of threshold excesses arising with the corresponding values of threshold on the bottom axis.
Colour of the line on the threshold stability plot.
Colour of the pointwise confidence region on the threshold stability plots.
Size of text on the plot (ggplot). Defaults to
textsize=4
.
Arguments to plot
.
Not used.
Stuart Coles, Janet E Heffernan, Harry Southworth
This is Stuart Coles' gpd.fitrange
, as it appears in the ismev
package, refactored into a function that does the computations, and method
functions. The function uses evm
internally and uses the default
options for that function.
Note this function does not extend to assessing model fit when there are covariates included in the model.
evm
par(mfrow=c(1,2))
plot(gpdRangeFit(rain))
Run the code above in your browser using DataLab