I use Stata 17 (24 cores).
I am sorry that I cannot provide the reproducible example because this problem is really a problem of Stata generating different result at different times. But I can provide this screenshot.
Array
lnFirmEmp is created by "gen lnFirmEmp = log(FirmEmp)"
There are more than 10M observations. In just two of them, I got weird results.
1st observation in the screenshot: It should be 10.854624 if I take the log. It gave me 10.854639. After the data was generated and saved, I checked the accuracy and it was wrong. So I created log variable once again ("lnFirmEmp2"). Then now it's correct.
2nd observation in the screenshot: After taking log, ".b" was created. I have more than 10M observations and many of them are missing "FirmEmp", but this was the only case where Stata thought it should be ".b" after taking the log. It's very strange.
3rd observation in the screenshot: It's correct.
But these problems disappeared after I re-ran the code (That is, Log created 10.854624 in the 1st observation, and created "." in 2nd observation.)
How can I explain this situation?
I ran the same code. Stata made two "mistakes" in the first try among lots of calculations. Stata didn't make these mistakes in the second try.
Can Stata really just make mistakes when somehow it didn't interact very well with my CPU?
Related Posts with Is it possible that log mis-calculates it or create weird ".b" when the workload is too heavy?
Error when testing for woodridge autocorrelation test on panel dataHello, I have been testing for the serial correlation using the Woodridge test but i seem to have t…
Choice across periodsIn period one, actors can choose as many options as they want from a given set, with no limit. In pe…
3 way interaction (continuous*continuous*binary dummy) interpretation + necessary testsHello everyone, I am currently working on a paper where a 3-way interaction is included in a panel …
limiting data between 1st and 98th percentileHello, I am using Code: summarize co2eqavg3, detail keep if inrange(co2eqavg3, r(p1), r(p98)) | mis…
Ordinal variablesHi, I have two ordinal variables. The first takes values from a 3-point scale, the second from a 4-p…
Subscribe to:
Post Comments (Atom)
0 Response to Is it possible that log mis-calculates it or create weird ".b" when the workload is too heavy?
Post a Comment