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: R: label variable: curious response


From   Sergiy Radyakin <serjradyakin@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: R: label variable: curious response
Date   Thu, 30 May 2013 15:45:24 -0400

The problem is not with the code, which is ok if you type it, but with
some program transforming the code somewhere in between you type it
and Stata get's it. Specifically the quotes symbol that you posted is
not the quotes symbol that Stata expects, or in other words it is
char(148) and not char(34).

Word is known to do that, perhaps some email programs are doing it too.

If you copy the code from the statalist posting it should show an error.
If you type the suggested code in Stata it should work, since you are
likely will be pressing the right quotes key instinctively.

Best, Sergiy



On Thu, May 30, 2013 at 12:05 PM, Carlo Lazzaro
<carlo.lazzaro@tiscalinet.it> wrote:
> Dear Michael,
> very odd indeed.
> Your code works successfully for me in Stata 12.1.
>
> Best regards,
> Carlo
> -----Messaggio originale-----
> Da: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] Per conto di Michael McCulloch
> Inviato: giovedì 30 maggio 2013 17:39
> A: statalist@hsphsun2.harvard.edu
> Oggetto: st: label variable: curious response
>
> Greetings!
>
> I'm scratching my head over the following error message:
>
> . sysuse nlsw88, clear
> . gen wt = int(uniform()*10)
> . la var south ”Lives in the south”
>
> invalid syntax
> r(198);
>
>
> Even though the Help Label instructions show examples of labels containing
> spaces, that error message is not reported if I change the command to:
> . la var south ”Lives”
>
> I'd appreciate any guidance.
>
> Best wishes,
> Michael McCulloch, LAc MPH PhD
>
> --
> Pine Street Foundation, since 1989
> 124 Pine Street | San Anselmo | California | 94960-2674
> P: (415) 407-1357 | F: (206) 338-2391 | http://www.PineStreetFoundation.org
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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