I am trying to figure out the best way to set a seed and have reproducible results.
Now, I am playing a little bit with rngstate in STATA 13 but an error appears according to which rngstet does not exist.
My simple code is as follows:
Code:
clear all set more off macro drop _all scalar drop _all capture postutil clear set seed 12345 generate x = runiform() local state `c(rngstate)' generate y = runiform() set rngstate `state' generate z = runiform() list
Code:
-set rngstate- not allowed; 'rngstate' not recognized
Than you
0 Response to rngstate not found
Post a Comment