View source: R/default-gen-pp.R
pp | R Documentation |
pp
is a generic function used to show probability-probability plot.
The function invokes particular methods
which depend on the class
of the first argument.
So the function makes a probability probability plot for univariate POT models.
pp(object, ...)
## S3 method for class 'uvpot'
pp(object, main, xlab, ylab, ci = TRUE, ...)
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 |
The probability probability plot consists of plotting the theoretical probabilities in function of the empirical model ones. The theoretical probabilities are computed from the fitted GPD, while the empirical ones are computing from a particular plotting position estimator. This plotting position estimator is suited for the GPD case (Hosking, 1995) and are defined by:
p_{j:n} = \frac{j - 0.35}{n}
where n
is the total number of observations.
If the theoretical model is correct, then points should be “near”
the line y=x
.
A graphical window.
Mathieu Ribatet
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.
qq
, qq.uvpot
x <- rgpd(75, 1, 2, 0.1)
pwmb <- fitgpd(x, 1, "pwmb")
pp(pwmb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.