Learn R Programming

texmex (version 1.3)

bgpdSetSeed: Set the seed from a fitted bgpd object.

Description

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

Usage

bgpdSetSeed(x)

Arguments

x
An object of class bgpd, as returned by gpd using method = "simulate".

Details

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

See Also

gpd

Examples

Run this code
# data <- rnorm(1000)
# mod <- gpd(data, qu=.7, method="simulate")
# bgpdSetSeed(mod)
# mod1 <- gpd(data, qu=.7, method="simulate") # this produces the same MCMC output as mod

Run the code above in your browser using DataLab