Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: problems with browsing, dropping certain observations


From   Steve Samuels <[email protected]>
To   [email protected]
Subject   Re: st: problems with browsing, dropping certain observations
Date   Mon, 31 May 2010 08:03:18 -0400

This looks like a problem of computer precision--failure to represent
numbers like "0.01"  exactly internally-. This is not a formatting
issue-- there have been many posts about this. Convert your variables
to integers --multiply by 100- and work with those.

Steve

On Mon, May 31, 2010 at 7:58 AM, Michael Findley <[email protected]> wrote:
> Dear Stata list:
>
> I'm puzzled about what seems to be a simple formatting issue. I import a .csv file with variables that range from .001 to .009. I can carry out certain commands, such as generate a new variable that has similar values, but I cannot perform other simple tasks such as "browse if variable == .001" or "keep if variable == .001". The variable is formatted as a float (%9.0g), which is a general format that should allow this as I understand it. I was worried that importing the data caused the problem, but when I just open stata and enter similar values, I get the same thing. I also tried reformatting the variable to several different fixed formats, but still no luck. What am I missing? Any thoughts greatly appreciated.
>
> Mike Findley
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>



-- 
Steven Samuels
[email protected]
18 Cantine's Island
Saugerties NY 12477
USA
Voice: 845-246-0774
Fax:    206-202-4783

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index