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?
Question on How to Write Add in Conditions for a RegressionHello, I need to run some regressions in Stata with a few conditions. I am examining data on incenti…
How can I calculate the average value of the 5 largest daily returns in the past 1 month? I can use "rangestat(mean) daily_ret, interval(yearmonth -1 0) by(stock_code)" to calculate the ave…
Wildcard with exceptionI have a variable location, which I am splitting, e.g. Code: split location, p(", ") This generates…
Graph with two concentration indices using CONINDEXHi Everyone, I am trying to create a graph with two concentration indices using the CONINDEX comman…
Contract variables with statistics of another variable, or combination of contract and collapseDear Stata users, My following question may be easy but I could not find a direct command to achiev…
Subscribe to:
Post Comments (Atom)
0 Response to Getting different results from running same exact code - why?
Post a Comment