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

st: RE: Bug in Stata 11

From   "Martin Weiss" <>
To   <>
Subject   st: RE: Bug in Stata 11
Date   Sat, 8 Aug 2009 00:35:21 +0200


Help me understand this line:

- count if length(foreign)>12-

Are you saying the result should be 22? I end up with a r(109) "type
mismatch", because a string function is applied to a numeric argument. Did
you really mean

-cou if for-?


-----Original Message-----
[] On Behalf Of Sergiy Radyakin
Sent: Samstag, 8. August 2009 00:06
Cc: Stata Technical Support
Subject: st: Bug in Stata 11

Dear Stata users and developers,
the following seems to be a reproducable bug in Stata 11.

Here is the code that is executed incorrectly by Stata 11 (must be run
as a do-file):
* -----------------------------------------------------------------------
version 10.1
set memory 1m
sysuse auto
browse foreign make if foreign
list foreign make if foreign
* -----------------------------------------------------------------------

Note that in this particular dataset:
. count if length(foreign)>12

What is expected? Only observations satisfying condition (22) are
displayed in the browser.
What is actually occuring? Stata 10 displays only observations
satisfying the condition (22) and only requested variables. Stata 11
displays all observations and all variables, shows the status of the
filter (in the status line) as "Filter: Off", numbero of variables is
12. Number of observations is 74.
When does the problem occur? Always when command -browse- is called
from a .do-file and never when command -browse- is submitted from the
command line interactively.
Which versions does it affect? The problem was observed in Stata
MP8-64bit 11.0.669 for Windows, born 13 Jul 2009. Suspected are (at
least) all Windows flavors.
What are the possible consequences? Any program, which presents
results to the user with the -browse- command will present the whole
set of records, rather then the records satisfying the if-condition.

Thank you, Sergiy Radyakin

PS: Sorry if this was already known, but there is no public
bugs-database to check if a bug is already discovered.
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index