Statalist


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

RE: st: RE: Bug in Stata 11


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: Bug in Stata 11
Date   Sat, 8 Aug 2009 01:23:47 +0200

<>

For me, the prob also occurs with -vers 11- specified:

***
vers 11
 sysuse auto, clear
 browse foreign make if foreign
 li  foreign make if foreign
***

I hope I am overlooking something obvious...


HTH
Martin


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Sergiy Radyakin
Sent: Samstag, 8. August 2009 01:05
To: [email protected]
Subject: Re: st: RE: Bug in Stata 11

Hi, Martin,

my original example involved the following condition: if length(make)>12
Since "if foreign" is a simplier condition and it still allows to see
the bug, I replaced the if-condition in the final posted code, but
apparently not everywhere.
Should be: count if foreign
22.

Best,
   Sergiy Radyakin

On Fri, Aug 7, 2009 at 6:35 PM, Martin Weiss<[email protected]> wrote:
>
> <>
>
> 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-?
>
>
>
>
> HTH
> Martin
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Sergiy Radyakin
> Sent: Samstag, 8. August 2009 00:06
> To: [email protected]
> 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
> 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/
>
>
> *
> *   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/



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