Learn R Programming

texmex (version 2.4.9)

evmSimSetSeed: Set the seed from a fitted evmSim object.

Description

Set the seed from a fitted evmSim object to ensure reproducibility of output.

Usage

evmSimSetSeed(x)

Arguments

x

An object of class evmSim, as returned by evm using method = "simulate".

Author

Harry Southworth

Details

Sets the seed to the value used to fit the model.

See Also

evm

Examples

Run this code
 # \donttest{ 
 data <- rnorm(1000)
 mod <- evm(data, qu=.7, method="simulate")
 evmSimSetSeed(mod)
 mod1 <- evm(data, qu=.7, method="simulate") # this produces the same MCMC output as mod
# }

Run the code above in your browser using DataLab