Code:
set seed
MacOS Catalina v 10.15.6
Stata 12.1
Code:
set seed 1975 set obs 5 gen x=runiform() list x
.5811128
.9205765
.4357026
.3658487
.379546
Windows 10 Home
Stata 16.1
the same commands consistently yield the following values on a new instance of Stata:
.8699474
.5506942
.4135425
.0386538
.8706713
Does anyone know how can I obtain consistent results across these two computers with different operating systems and Stata versions?
0 Response to set seed yileds different results across OS/Stata Version
Post a Comment