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, 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 <>
To   statalist <>
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:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index