mex(data, which, mth, mqu, dth, dqu, penalty = "gaussian", maxit = 10000, trace = 0, verbose = FALSE, priorParameters = NULL)
## S3 method for class 'mex':
print(x, ...)
## S3 method for class 'mex':
show(x, ...)
## S3 method for class 'mex':
summary(object, ...)
## S3 method for class 'mex':
plot(x, quantiles = seq(0.1, by = 0.2, len = 5), col = "grey", ...)
## S3 method for class 'mex':
coef(object, ...)
## S3 method for class 'mex':
coefficients(object, ...)
## S3 method for class 'mex':
predict(object, which, pqu=0.99, nsim=1000, trace=10, ...)
## S3 method for class 'predict.mex':
print(x, ...)
## S3 method for class 'predict.mex':
show(x, ...)
## S3 method for class 'predict.mex':
summary(object, mth, probs=c(0.05, 0.5, 0.95), ...)
## S3 method for class 'summary.predict.mex':
print(x, ...)
## S3 method for class 'summary.predict.mex':
show(x, ...)
## S3 method for class 'predict.mex':
plot(x, pch=c(1, 3), col=c(2, 8), cex=c(1, 1), ask=TRUE, ...)
mex
, the threshold above which to fit generalized Pareto distributions.
If this is a vector of length 1, the same threshold will be used for
each variable. Otherwise, it should be a vector whose length is
dth
, specify the quantile at which to
threshold the transformed data when estimating the dependence
parameters.gpd
for more information.maxit = 1000
.verbose = FALSE
.plot.predict.mex
, the colours of points for observed and
simulated data.mex
as returned by function mex
.predict.mex
. The quantile of the conditioning
variable over which it will be thresholded. Defaults to pqu = .99
.predict.mex
. The number of simulated observations
to be generated for each set of bootstrap parameter estimates.summary.predict.mex
the quantiles of the conditional
distribution(s) to calculate. Defaults to 5%, 50% and 95%.col
, each of which should be of length 2.ask = TRUE
.migpd
.mexDependence
. The predict
method for mex
works as follows.
For each set of parameter estimates and normalized conditional Gumbel
data, simulated values of the dependent variables are created, given that the
conditioning variable is above its 100pqu
quantile. The returned object
has class 'predict.mex'. The simulated values based on the actual data
and point estimates appear in component object$data$simulated
. The
simulated data from the bootstrap estimates appears in object$replicates
.
There are print
, summary
and
plot
methods available for the class 'predict.mex'. The plot
method displays both the original
data and the simulated data generated above the threshold for prediction; it
shows the threshold for prediction (vertical line) and also the curve joining equal quantiles
of the marginal distributions -- this is for reference, since variables that
are perfectly dependent will lie exactly on this curve.
migpd
, mexDependence
, bootmex
w <- mex(winter, mqu=.7)
w
par(mfcol=c(4, 2))
plot(w)
Run the code above in your browser using DataLab