myrng | R Documentation |
Initializes the MATLAB random generator
myrng(seed)
seed |
a single value, interpreted as an integer |
Integer, the seed value with which the MATLAB random number generator was initialized.
FSDA team, valentin.todorov@chello.at
## Not run:
data(wool)
XX <- wool
y <- XX[, ncol(XX)]
X <- XX[, 1:(ncol(XX)-1), drop=FALSE]
seed <- myrng() #i nitialized the RNG and keep the seed
myrng(seed) # repeat the computations with the same seed
(out2 <- fsreg(X, y, method="LTS"))
all.equal(out1, out2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.