Bookmark and Share

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]

st: graph twoway option by() dose not allow variable with a comma in the value labels


From   Oliver Jones <[email protected]>
To   [email protected]
Subject   st: graph twoway option by() dose not allow variable with a comma in the value labels
Date   Thu, 14 Apr 2011 17:04:05 +0200

Hello everybody,

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?

Best
Oliver
--
Universität Bielefeld
Fakultät für Wirtschaftswissenschaften
Lehrstuhl für Ökonometrie und Statistik
- -
Bielefeld University
Faculty of Business Administration and Economics
Chair of Econometrics and Statistics
- -
Raum / room:  V9-110
Tel / phone:  +49 (0)521 106 4871
---
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index