Hey,
I have a dta file with several variables. The properties of the variables in the dta file are all the same (Type "long", Format "%9.0g"). According to the documentation the variables are different:
Variable 1 has "Length of Byte = 2"
Variable 2 has "Length of Byte = 12" (plus note "4 - decimal points")
Variable 3 has "Length of Byte = 1"
The file can be found here:
https://www.dropbox.com/s/pcp79apult...ample.dta?dl=0
In case of variable 1 and 3 everything seems to be fine. The value shown in the cell is the same as the value shown above. Plus, if I copy the value to the clipboard it also stays the same. However, in case of variable 2 the value in the cell is basically the same as in the clipboard, but not as shown above (= field on top of screenshot). What do I have to change to get the correct value (it should be the one in the clipboard).
In the end I want to use the data in R. Unfortunately R also gives me the value shown in the top field, which is wrong. So I assume I have to change the dta file first.
Thanks in advance!
0 Response to Stata shows "wrong" value
Post a Comment