gpd.mle {mev} | R Documentation |
Generalized Pareto maximum likelihood estimates for various quantities of interest
Description
This function calls the fit.gpd
routine on the sample of excesses and returns maximum likelihood
estimates for all quantities of interest, including scale and shape parameters, quantiles and value-at-risk,
expected shortfall and mean and quantiles of maxima of N
threshold exceedances
Usage
gpd.mle(
xdat,
args = c("scale", "shape", "quant", "VaR", "ES", "Nmean", "Nquant"),
m,
N,
p,
q
)
Arguments
xdat |
sample vector of excesses |
args |
vector of strings indicating which arguments to return the maximum likelihood values for |
m |
number of observations of interest for return levels. Required only for |
N |
size of block over which to take maxima. Required only for |
p |
tail probability, equivalent to |
q |
level of quantile for N-block maxima. Required only for |
Value
named vector with maximum likelihood values for arguments args
Examples
xdat <- mev::rgp(n = 30, shape = 0.2)
gpd.mle(xdat = xdat, N = 100, p = 0.01, q = 0.5, m = 100)