evmSimSetSeed: Set the seed from a fitted evmSim object.

View source: R/evm.simSetSeed.R

evmSimSetSeedR Documentation

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".

Details

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

Author(s)

Harry Southworth

See Also

evm

Examples

  
 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



texmex documentation built on June 22, 2024, 12:26 p.m.