Hi
I am not sure why stata does not seem to read the number 0.001 as such. See below in my dataset. The variable myvar has the value 0.001 and when I ask Stata to drop this number, it does not do so.
Is there any issue with rounding that makes stata read this as being higher than 0.001, for example, 0.001000222?? The data was csv and then converted in Stata format
* Example generated by -dataex-. To install: ssc install dataex
clear
input float myvar
0
0
0
0
0
0
-18.807
0
0
0
0
0
0
0
0
0
0
0
.002
0
0
0
0
0
0
-.217
-.042
0
-1098
-25623
0
0
0
.001
0
0
end
[/CODE]
. drop if myvar==0.001
(0 observations deleted) // nothing is deleted
I am not sure why stata does not seem to read the number 0.001 as such. See below in my dataset. The variable myvar has the value 0.001 and when I ask Stata to drop this number, it does not do so.
Is there any issue with rounding that makes stata read this as being higher than 0.001, for example, 0.001000222?? The data was csv and then converted in Stata format
* Example generated by -dataex-. To install: ssc install dataex
clear
input float myvar
0
0
0
0
0
0
-18.807
0
0
0
0
0
0
0
0
0
0
0
.002
0
0
0
0
0
0
-.217
-.042
0
-1098
-25623
0
0
0
.001
0
0
end
[/CODE]
. drop if myvar==0.001
(0 observations deleted) // nothing is deleted

Comment