I am dropping observations based on various if statements written in a do file. I have all the code in the do file highlighted and run it. All I do is "clear" and "log close" in the command window, and hit run again without touching the highlighted code or even reselecting the code. I've run the code 10 times in a row this way, and sometimes I get n=1620 and sometimes I get n=1621. No code has changed between each time I run it, so I am positive that Stata is producing different results when given the exact same input. Why is this happening?
Related Posts with Getting different results from running same exact code - why?
Help with calculations based on conditions and groupsHello all, I have a dataset that looks something like this (but with over 70k observations and over…
MarginsplotHello, I have a quick question on the command "marginsplot" I have the following codes: regress y…
How to generate a new variable as a non-algebraic combination of valuesHi, I have the following data and v6 has years and v7 has months. I want to overwrite v6 whose value…
merging Compustat Fundamentals annual data and daily security dataDear Statalist members, For my thesis, I need to merge daily security data to Fundamentals annual d…
Comparing means across groups using svy commands and esttabDear STATA users I hope someone can help me. I am having a really hard time making a - what I thoug…
Subscribe to:
Post Comments (Atom)
0 Response to Getting different results from running same exact code - why?
Post a Comment