qq {POT} | R Documentation |
Quantile Quantile Plot
Description
qq
is a generic function used to show quantile-quantile plot.
The function invokes particular methods
which depend on the class
of the first argument.
So the function makes a quantile quantile plot for univariate POT models.
Usage
qq(object, ...)
## S3 method for class 'uvpot'
qq(object, main, xlab, ylab, ci = TRUE, ...)
Arguments
object |
A fitted object. When using the POT package, an object
of class |
main |
The title of the graphic. If missing, the title is set to
|
xlab , ylab |
The labels for the x and y axis. If missing, they are
set to |
ci |
Logical. If |
... |
Other arguments to be passed to the |
Details
The quantile quantile plot consists of plotting the observed quantiles
in function of the theoretical ones. The theoretical quantiles
are computed from the fitted GPD, that
is:
where is the fitted quantile function and
are empirical probabilities defined by :
where is the total number of observations - see Hosking
(1995).
If the theoretical model is correct, then points should be “near”
the line .
Value
A graphical window.
Author(s)
Mathieu Ribatet
References
Hosking, J. R. M. and Wallis, J. R. (1995). A comparison of unbiased and plotting-position estimators of L moments. Water Resources Research. 31(8): 2019–2025.
See Also
Examples
x <- rgpd(75, 1, 2, 0.1)
pwmu <- fitgpd(x, 1, "pwmu")
qq(pwmu)