simmcpot {POT} | R Documentation |
Simulate an Markov Chain with a Fixed Extreme Value Dependence from a Fitted mcpot Object
Description
Simulate a synthetic Markov chain from a fitted 'mcpot'
object.
Usage
simmcpot(object, plot = TRUE, ...)
Arguments
object |
An object of class |
plot |
Logical. If |
... |
Other optional arguments to be passed to the
|
Details
The simulated Markov chain is computed as follows:
Simulate a Markov chain
prob
with uniform margins on (0,1) and with the fixed extreme value dependence given byobject
;For all
prob
such asprob \leq 1 - pat
, setmc = NA
(wherepat
is given byobject$pat
);For all
prob
such asprob \geq 1 - pat
, setprob2 = \frac{prob - 1 + pat}{pat}
. Thus,prob2
are uniformly distributed on (0,1);For all
prob2
, setmc = qgpd(prob2, thresh, scale, shape)
, wherethresh, scale, shape
are given by theobject$threshold, object$param["scale"]
andobject$param["shape"]
respectively.
Value
A Markov chain which has the same features as the fitted object. If
plot = TRUE
, the Markov chain is plotted.
Author(s)
Mathieu Ribatet
See Also
Examples
data(ardieres)
flows <- ardieres[,"obs"]
Mclog <- fitmcgpd(flows, 5)
par(mfrow = c(1,2))
idx <- which(flows <= 5)
flows[idx] <- NA
plot(flows, main = "Ardieres Data")
flowsSynth <- simmcpot(Mclog, main = "Simulated Data")