evmSimSetSeed: Set the seed from a fitted evmSim object.

Description Usage Arguments Details Author(s) See Also Examples

View source: R/evm.simSetSeed.R

Description

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

Usage

1

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

1
2
3
4
5
  
 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 Dec. 4, 2020, 5:08 p.m.