Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: a bug in stphplot?


From   jhassell@stata.com (James Hassell)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: a bug in stphplot?
Date   Thu, 17 Nov 2005 16:50:35 -0600

Dale has indeed found a bug in -stphplot-. We will get this fixed and it will
be available in an upcoming ado update.

Thanks,

James Hassell
StataCorp



Dale Plummer wrote ---

We have found what looks like a bug in stphplot.  If value labels are
defined
that contain an equal sign then the label is truncated at the equal sign
when the
label is used in the legend produced by stphplot.

*-------------------------------------
*
*  Execute this code to illustrate the problem.
*  You need Internet access to get the data set.
*
pause on
webuse ctset2
stset failtime, fail(fail)

stphplot, by(bearings)
pause
*
*  now define a label for bearings...
*
label define blbl 0 "abnormal no" 1 "abnormal yes"
label values bearings blbl
*
*  ...and the graph produced by stphplot looks fine
*
stphplot, by(bearings)
pause
*
*  But if we put an equal sign in the label then the
*  label is truncated in the legend
*
label define blbl 0 "abnormal=no" 1 "abnormal=yes", modify
stphplot, by(bearings)
pause
*-------------------------------------

The "=no" and "=yes" do not appear in the plot
legend.

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index