Usage
gpd.fit(xdat, threshold, npy = 365, ydat = NULL, sigl = NULL,
shl = NULL, siglink = identity, shlink = identity, show = TRUE,
method = "Nelder-Mead", maxit = 10000, ...)
Arguments
xdat
A numeric vector of data to be fitted.
threshold
The threshold; a single number or a numeric
vector of the same length as xdat
.
npy
The number of observations per year/block.
ydat
A matrix of covariates for generalized linear modelling
of the parameters (or NULL
(the default) for stationary
fitting). The number of rows should be the same as the length
of xdat
.
sigl, shl
Numeric vectors of integers, giving the columns
of ydat
that contain covariates for generalized linear
modelling of the scale and shape parameters repectively
(or NULL
(the default) if the corresponding parameter is
siglink, shlink
Inverse link functions for generalized
linear modelling of the scale and shape parameters repectively.
show
Logical; if TRUE
(the default), print details of
the fit.
method
The optimization method (see optim
for
details). maxit
The maximum number of iterations.
...
Other control parameters for the optimization. These
are passed to components of the control
argument of
optim
.