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?
How to calculate Point Estimates in a regressionDear All; Need your kind help. I have a file tea_data.csv (attached for reference). I generated the…
How to add an extra year to an existing datasetDear members I have a dataset spanning from 2005-2019 and I would like to add 2004 to the year varia…
help with Synthetic controlhello everyone. Ive compiled data on a large amount of countries to perform synthetic control. yeste…
Stratified cluster sampling Hello everyone I have census data for 115 400 companies in a city. There are 24 municipalities in…
Estadd local not workingHello, I'm using Stata17MP on Windows 11. I'm trying to use estadd local but it's not working. In p…
Subscribe to:
Post Comments (Atom)
0 Response to Getting different results from running same exact code - why?
Post a Comment