Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Bug in Stata 13 (Mac) with compress duplicating variables?


From   Sergiy Radyakin <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Bug in Stata 13 (Mac) with compress duplicating variables?
Date   Fri, 2 Aug 2013 20:19:09 -0400

How about describe? ds? and what happens if you save the dataset? Are
there two variables with the same name that end up in the saved file?
Does the number of variables increase after compress? or a variable
got renamed incorrectly? does the problem occur only to variable year?
or other variables in the dataset? How is 'year' special? (e.g. this
is the only variable that got compressed, or the last variable, or the
first variable, etc).
Sergiy

On Fri, Aug 2, 2013 at 2:48 PM, Wayne Folta <[email protected]> wrote:
> I was trying to graph a box plot:
>
> . graph box dca, over(year)
>
> year already defined
> r(110);
>
> But of course year exists, that's why I'm using it. I finally figured out that compress (I think) is duplicating variables in strange ways. For example, if I:
>
> . lookfor "year"
>
>               storage   display    value
> variable name   type    format     label      variable label
> --------------------------------------------------------------------------------------------------------------------------------------
> year            int     %9.0g                 year
> year            int     %9.0g                 year
>
> I cannot see year twice in the Data Browser, but I do see it twice in the Variables Manager, and if I use the Variables Manager to change its label, it changes the label in both copies. I don't get any r(110)'s if I use year in most any way except in graph box's over(). I can drop year and then I only have one left. I'm not positive but I believe this started when I used compress. I also suspect compress because I had several duplicated variables and at least one of them had two different storage types (int and byte) and I know that the byte version occurred only because of a compress.
>
> Anyone else seen this? (Love Stata 13, by the way, my introduction to Stata.)
>
>    Wayne
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index