Ilaria wrote:
I would like stata to generate the following graph bar, and I type the
following commands:
#delimit ;
graph bar x1 x2 x3 x4 x5,perc over(category)
legend(label(1"in 15 minutes")label(2"in 30
minutes")label(3"in 45 minutes")label(4"in 60 minutes")label(5"more than
60 minutes"))
title("% of population")
subtitle("by category")
ytitle("Percentage");
#delimit cr
However, when I run these commands I obtain an invalid syntax message.
What is wrong with it? I've been looking at the manual and website, but
I don't seem able to find the right answer for this.
-------------------------------------------------------------
It is difficult to see due to the possible breakup of a line. But the
problem may be that the line starting with legend is too long; the rule
is that the maximum line length is 80.
Recommendation: Show the exact error message when asking.
Hope this helps
Svend
__________________________________________
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000 Aarhus C, Denmark
Phone: +45 8942 6090
Home: +45 8693 7796
Email: [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/