Stata's help documentation for set seed (https://www.stata.com/manuals/rsetseed.pdf) emphasizes that (A) seeds should be set only once per "problem" and that (B) the number for the seed should be as random as possible. It seems that this advice was devised with simulations in mind. I have several questions about this advice.
1. What is the definition of a "problem"? For example, suppose that I have N specifications (e.g. continuous vs binary variable; various choices of error distributions; etc.) and I want to run a simulation of 10,000 replications for each of them. Does each specification constitute a separate problem, such that it's alright to (A) set seeds for each specification and (B) use the same seed for each specification? This is equivalent to setting the same seed N times.
2. Do recommendations (A) and (B) only pertain to simulations? For example, suppose that I am working with real data and I want to use lasso for covariate selection. I have N dependent variables, some of which are possibly correlated, and want to run the lasso for each one. Can I just use the rseed() option with the same seed for each lasso? This is equivalent to setting the same seed N times.
Thanks in advance!
Related Posts with Clarification on choice of random seeds and how often to set seeds
Merge based on several variables matchingHi fellow Stata users, I'm working on a population of cancer patients and for that I have two datas…
Need Help: On Constructing Some Tables with Attendance DataThis is how my Attendance data looks like: Date TeachersName Student1 Student2 Student3 Student4 …
How to calculate standardized mean difference using ipdmetan (two-stage IPD meta-analysis)?Hi everyone, I'm running a two-stage IPD meta-analysis by using ipdmetan: ipdmetan, study(StudyID) …
System GMM - Interpreting the outputHello, I am estimating whether the total value of stocks traded and credit to the private sector ha…
Upon saving my stata ouput as a .tex file, sigificance is disappearing. Why is this happening?hi statalist, I am having a peculiar problem while using estout to save my output as a tex file. I …
Subscribe to:
Post Comments (Atom)
0 Response to Clarification on choice of random seeds and how often to set seeds
Post a Comment