getRNG | R Documentation |
Get the random number generator and seed used to generate an object.
getRNG(e=NULL)
## Default S3 method:
getRNG(e=NULL)
e |
an object generated by simulation (which stored the RNG information). |
Extract the RNG information used to generate the object. If e
is NULL
then getRNG
returns the RNG setting, as
returned by setRNG()
. Otherwise,
the default method assumes the object is a list and the RNG information
is in the element rng
or noise\$rng
.
The random seed and other random number generation information used to generate the object.
setRNG
,
.Random.seed
## Not run:
if (require("dse")) {
data("eg1.DSE.data.diff", package="dse")
model <- estVARXls(eg1.DSE.data.diff)
sim <- simulate(model)
getRNG(sim)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.