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

st: Graph problem


From   "Kieran McCaul" <kieran@dph.uwa.edu.au>
To   "Statalist" <statalist@hsphsun2.harvard.edu>
Subject   st: Graph problem
Date   Sun, 23 Nov 2003 11:46:05 +0800

Hi everyone,

Can someone tell me why the first graph command below produces the graph and
the second one produces the error message.

Thanks.



. #delimit ;
delimiter now ;
. use "C:\Incidence - Age analysis\Person years Age
analysis\agegrp7.dta",clear;

. twoway  (rcapsym _Upper _Lower agegrp, msymbol(point)),
>         ytitle(Incidence rate (per 1000 person years))
>         yscale(range(0 10)) ylabel(0(5)25, angle(horizontal)
>         format(%2.0f))
>         xtitle(Age Group) xscale(titlegap(3)) xlabel(, valuelabel)
>         legend(off)
>         name(agegrp7, replace)
>         scheme(s1mono) || line _Rate agegrp , clp(l) || ;

.          twoway (rcapsym _Upper _Lower agegrp, msymbol(point)),
>         ytitle(Incidence rate (per 1000 person years))
>         yscale(range(0 10)) ylabel(0(5)25, angle(horizontal)
>         format(%2.0f))
>         xtitle(Age Group) xscale(titlegap(3)) xlabel(, valuelabel)
>         legend(off)
>         name(agegrp7, replace)
>         scheme(s1mono)  || line _Rate agegrp , clp(l) || ;
| is not a twoway plot type
invalid syntax
r(198);

end of do-file
r(198);








_______________________________________________________________________
Kieran McCaul
Research Fellow
School of Population Health, M431
University of Western Australia
35 Stirling Hwy
Crawley, 6009
Australia
Phone:-61-8-9380-1274
Mobile: 0403-00-33-82
Fax:	-61-8-9380-1188
email:kmccaul@cyllene.uwa.edu.au
      kieran@dph.uwa.edu.au
web:	http://www.publichealth.uwa.edu.au/

UWA School of Population Health Summer School 2003
http://summerschool.sph.uwa.edu.au/.

______________________________________________________________________
IMPORTANT: This email is intended for the use of the individual
addressee(s) named above and may contain information that is
confidential, privileged or unsuitable for overly sensitive
persons with low self-esteem, no sense of humour or irrational
religious beliefs. If you are not the intended recipient, any
dissemination, distribution or copying of this email is not
authorised (either explicitly or implicitly) and constitutes an
irritating social faux pas.

CRICOS provider code (00126G)
______________________________________________________________________


*
*   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