xdat <- mev::rgp(
n = 100,
loc = 0,
scale = 1,
shape = 0.5)
fitted <- fit.egp(
xdat = xdat,
thresh = 1,
model = "pt-gamma",
show = TRUE)
thresh <- mev::qgp(seq(0.1, 0.5, by = 0.05), 0, 1, 0.5)
tstab.egp(
xdat = xdat,
thresh = thresh,
model = "pt-gamma")
xdat <- regp(
n = 100,
scale = 1,
shape = 0.1,
kappa = 0.5,
model = "pt-power"
)
fit.egp(
xdat = xdat,
model = "pt-power",
show = TRUE,
fpar = list(kappa = 1),
method = "Nelder"
)
Run the code above in your browser using DataLab