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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: label values


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: label values
Date   Thu, 6 Oct 2011 23:25:53 +0100

This has been true for some time at least; the same can be observed in
9.2 and 10.1.

I can't see that it does much harm; as the value labels that don't
exist won't be displayed; sooner or later a user should notice!

Defining something with no elements often makes sense, or does no
harm. Mata is full of such ideas. In Stata, it is easy to have
variables but no observations. You can -append- to such a dataset.

Nick

On Thu, Oct 6, 2011 at 10:02 PM, Airey, David C
<david.airey@vanderbilt.edu> wrote:
> .
>
> I noticed in Stata 12 that if you apply a label that is not defined, you get no error.
>
> This can be a problem is you misspell the label name, and you have not in fact applied what you thought you did.
>
> e.g.,
>
> sysuse auto
> label values rep78 foo
>
>
>
>
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index