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, statalist.org is already up and running.


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

st: A more informative error mesage in -reshape-


From   Jorge Eduardo Pérez Pérez <perez.jorge@ur.edu.co>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: A more informative error mesage in -reshape-
Date   Thu, 13 Oct 2011 18:42:32 -0400

Dear Statalist

Reshaping a lot of variables, I noticed that if by mistake, you repeat
one of the variables you want to reshape, Stata issues a
noninformative variable not found error message.

. webuse reshape4
. des incf

              storage  display     value
variable name   type   format      label      variable label
------------------------------------------------------------------------------------------
incf            float  %9.0g                  f inc

. reshape long inc inc, i(id) j(sex) string
(note: j = f m)
variable incf not found

I think this should be changed to "inc already reshaped" or something
similar. When you are reshaping many variables or using varlists, the
mistake might be hard to notice.

_______________________
Jorge Eduardo Pérez Pérez


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index