I am looking for a number or string that will be different in different runs of the same program. So far I can only think of using c(current_time) but that only changes once a minute. Is there a way to get the processid? That is what Stata uses for its temporary files but I don't see how to get it myself. The documentation for Stata random functions suggests saving the rng state, but that requires coordination across runs that I can't depend on. Any other suggestions?
Related Posts with Random seed needed
Have any other users of Stata under Windows had problems with the shell command disallowing UNC paths?Fellow Statalisters I use the very latest Stata Version 16 (dated 11 Dec 2019) under Windows 10, an…
Splitting sample by dependent variableDoes it ever make sense for one to split their sample by values of the dependent variable and then r…
Correlation between two matricesHi, I have 4 variables called x, y, x1, and y1. I define two matrices called A and B as A=[x y] and…
graphHi all, I have data about companies' performance over time and a variable that identifies uncertain…
How to plot multilevel coefficients from mixed ? Can you use coefplot? If not a loop? macro?Hello Statalist & happy holidays! I need to plot the curves from my mixed analysis. But I'm not…
Subscribe to:
Post Comments (Atom)
0 Response to Random seed needed
Post a Comment