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?
Duplicate DataHello, I'm trying to find a more concise/efficient way to identify duplicate data. It's not as stra…
Interpretation of margins after ProbitI am running a probit model of math proficiency (proficient or not) on education expenditure (rupees…
Outreg2 for Likelihood Ratio Test (LR Test) ResultsHi all, I have been trying to send the Likelihood Ratio Test (LR Test) Results to MS Excel but fail…
Insignificant Variables and CollinearityHello! I am having some troubles with a particular regression. I have data from the labour force su…
Insignificant Variables and CollinearityHello! I am having some troubles with a particular regression. I have data from the labour force su…
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