Fred Wolfe
> This is to report a graph box problem, Stata se 8.1, up to
> date, windows 2000
>
> This line works
> graph box peuro eq5d5 eq5d5sf sfindex euroqol
>
> Addition of the second line crashes Stata and throws me out
> to operating
> system.
>
> graph box peuro eq5d5 eq5d5sf sfindex euroqol ///
> legend( label(1 "HAQ") label(2 "EQ5D5") label(3 "EQ5D5-SF") label(4
> "SF-6D") label(5 "EuroQol"))
>
> The legend line worked perfectly in other non-box graphs.
There is nothing wrong with the -legend()- call.
However, you need a comma before the option, i.e.
just before or just after the "///".
Crashing may seem a little disproportionate
here as a response to this small syntax error.
However, as far as Stata is concerned
legend( label(1 "HAQ") label(2 "EQ5D5") label(3 "EQ5D5-SF") label(4
"SF-6D") label(5 "EuroQol"))
is all part of your varlist, and for other reasons parentheses ( )
are allowed as part of a varlist specification.
My wild guess is that Stata is thrown by the _nesting_ of
parentheses -- in, as said, what it thinks is a varlist.
Nick
[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/