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]
st: A more informative error mesage in -reshape-
From
Jorge Eduardo Pérez Pérez <[email protected]>
To
statalist <[email protected]>
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/