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?
How to make a graph that shows reliable and clinically significant change in particular variable?Dear Statalisters, I appreciate if anyone can help with how to make a graph showing reliable and cl…
how to use stcurve for Cox model after multiple imputation?Hello, Statalist! I have a question about the stcurve after a multiple imputation. So, after the f…
Selectively list date variable as matrix row name using macroGreetings, I'm hoping for some aid here. Having searched the forum for a solution, I've yet to find …
Code help: Monte Carlo simulationI've attached a small Do file for a Monte Carlo Simulation I am running for an economics class. For …
Interpretation for Vector Error Correction Model with 4 variables and 2 cointegration vectorsI have 4 time series variables, y, x, z, w,, which are filtered by tsmooth command. I tried to do co…
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