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: label values
From
Nick Cox <[email protected]>
To
[email protected]
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
<[email protected]> 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/