pot_refit | R Documentation |
This is a slightly modified versions of the pot
function in the evir
package.
The main modification is to add to the returned object the argument
data
supplied by the user. This is added to the returned
(list) object with the name input_data
.
pot_refit(data, threshold = NA, nextremes = NA, run = NA, picture = TRUE, ...)
data |
numeric vector of data, which may have a times attribute
containing (in an object of class |
threshold |
a threshold value (either this or |
nextremes |
the number of upper extremes to be used (either this or
|
run |
if the data are to be declustered the run length parameter for
the runs method (see |
picture |
whether or not a picture should be drawn if declustering is performed. |
... |
arguments passed to |
Bernhard Pfaff and Alexander McNeil (2018). evir: Extreme Values in R. R package version 1.7-4. https://CRAN.R-project.org/package=evir.
# We need the evir package
got_evir <- requireNamespace("evir", quietly = TRUE)
if (got_evir) {
library(evir)
data(danish)
out <- pot(danish, 10)
ls(out)
out <- pot_refit(danish, 10)
ls(out)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.