Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Sensitivity:


From   [email protected]
To   [email protected]
Subject   st: Sensitivity:
Date   Tue, 1 May 2007 18:44:08 +0800

Dear all,

A problem with bar graph labels.

The code designed to replace "0" by "south" and "1" by "other" works for
"south" but not for "other". Likewise, the code replaces "black" but not
"other".

I am following the example from "Stata help for graph intro"
http://www.stata.com/help.cgi?graph+intro

I wish to adapt the following example to my problem :

 graph bar wage,
 over( married )
 over( collgrad, relabel(0 "Not college graduate" 1 "College graduate"))

The dataset is card.dta, available here:
http://www.stata.com/texts/eacsap/

My code is:

 graph bar lwage, ///
 over(black, relabel(0 "Other" 1 "Black")) ///
 over(south, relabel(0 "Other" 1 "South"))

I am using stata 9.2

Help appreciated, as always!

Patrick T.
[email protected]

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index