Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: RE: Problems with "if X==number"

From   "Martin Weiss" <>
To   <>
Subject   st: RE: Problems with "if X==number"
Date   Sun, 25 Jul 2010 09:21:58 +0200

See and
Also see [U], 13.11.

-cou if gear_ratio ==float(3.54)- will give you the desired result...


-----Original Message-----
[] On Behalf Of Mark Marshall
Sent: Sonntag, 25. Juli 2010 08:46
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



sysuse auto
gen test=1 if gear_ratio==3.58
tab test


. gen test=1 if gear_ratio==3.58
(74 missing values generated)

. tab test
no observations


Mark Marshall

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index