Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
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/