I did this with an up-to-date Stata 9.2
sysuse auto, clear
separate mpg, by(foreign)
graph twoway qfit mpg0 weight, lpattern("_-_#")|| ///
qfit mpg1 weight, lpattern("l") ||, ///
legend(label(1 "Domestic") label(2 "Foreign") row(1) )
and I get no problems. I get "Fitted values" on the
y axis.
As possibly no one else can test your exact example,
without creating an artificial dataset,
please phrase any replies in terms of the example above.
Nick
[email protected]
Jia Xiangping
> I am graphing an override chart. But the legends do not change, though
> I define the legend label. Both legends are displayed as "Fitted
> values", instead of the words customized by myself.
>
> graph twoway qfit formhat aginc_rt, lpattern("_-_#")|| ///
> qfit ivfmhat aginc_rt, lpattern("l") ||, ///
> legend(label(1 "Model1") label(2 "Model2") row(1) )
>
> Can anybody give me some tips. Thanks.
*
* 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/