thinAndBurn | R Documentation |
Process observations from Metropolis fitting of extreme value models, to thin the output and discard observations from burn-in period.
## S3 method for class 'evmSim'
thinAndBurn(object, burn, thin)
object |
Object of class 'evmSim' as returned by |
burn |
The number of observations from the simulated Markov Chain to be
discarded as burn-in. Must be a non-negative integer, for no burn-in use
|
thin |
|
Object of class evmSim
. See Value returned by
evm
using method = "simulate"
for details.
Note that the original chain is not discarded when this function is called:
thinAndBurn
can be called recursively on the original object with
different values of burn
and thin
without the object getting
progressively smaller!
Harry Southworth, Janet E. Heffernan
evm
x <- rnorm(1000)
# For the values of burn and thin below, we should do many more iterations.
# The number of iterations is kept low here due to the run time allowed
# by CRAN.
mod <- evm(x, qu=.7, method="sim", iter=11000)
mod
par(mfrow=c(3, 2))
plot(mod)
mod1 <- thinAndBurn(mod,burn=1000, thin=5)
plot(mod1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.