Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Mark Marshall" <mrmarsh@woosh.co.nz> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | st: RE: RE: Problems with "if X==number" |
Date | Sun, 25 Jul 2010 19:31:55 +1200 |
Thanks Sarah, Martin. -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin Weiss Sent: Sunday, 25 July 2010 7:22 p.m. To: statalist@hsphsun2.harvard.edu Subject: st: RE: Problems with "if X==number" <> See http://www.stata.com/support/faqs/data/float.html and http://www.stata.com/support/faqs/data/prec.html Also see [U], 13.11. -cou if gear_ratio ==float(3.54)- will give you the desired result... HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Mark Marshall Sent: Sonntag, 25. Juli 2010 08:46 To: statalist@hsphsun2.harvard.edu Subject: st: Problems with "if X==number" Using Stata/MP 11.1, Windows Vista. Why is my Stata suddenly doing this? Is this something to do with some obscure Stata setting, or do I have a serious problem with my installation... ***************************************************** Code: sysuse auto gen test=1 if gear_ratio==3.58 tab test Output: . gen test=1 if gear_ratio==3.58 (74 missing values generated) . tab test no observations ***************************************************** Mark Marshall * * 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/ * * 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/ * * 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/