Statalist


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

st: Bug in Stata 11


From   Sergiy Radyakin <[email protected]>
To   [email protected]
Subject   st: Bug in Stata 11
Date   Fri, 7 Aug 2009 18:05:42 -0400

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
clear
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
   22

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:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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