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: graph twoway option by() dose not allow variable with a comma in the value labels


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: graph twoway option by() dose not allow variable with a comma in the value labels
Date   Thu, 14 Apr 2011 16:28:49 +0100

According to -help whatsnew-, this was fixed last year:

-------- update 04nov2010 -----------------------------------------------------

     3.  graph, by() would exit with an error when any of the variables
         specified in option by() had value labels or string values that
         contained commas.  This has been fixed.

Is your Unix version up-to-date?

Nick

On Thu, Apr 14, 2011 at 4:04 PM, Oliver Jones
<ojones@wiwi.uni-bielefeld.de> wrote:

> I just came across a problem while using the twoway option by().
> When the value labels of the variable in by() has a comma the graph
> can not be plotted.
> This little example reproduces the error:
>
> ************ Begin example *************
> sysuse auto, clear
>
> * Define a label with a comma in the label value.
> label define lbl_foreign 0 "Domestic, i.e. Made in USA" 1 "Foreign"
> label values foreign lbl_foreign
>
> tw (scatter mpg price) (lfit mpg price), by(foreign)
> ************ End example *************
>
> Just as I was preparing this example I found out that this problem seems to
> be
> related to the operating system in use.
> There is no problem using Windows, but I get an error message when I do the
> same
> commands on the UNIX Server...
>
> Dose anyone has an explanation? Or is this a question for the Stata
> Technical Services?
*
*   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