You have a space in the -by- option.
-by (status)- should be -by(status)-
______________________________________________
Kieran McCaul MPH PhD
WA Centre for Health & Ageing (M573)
University of Western Australia
Level 6, Ainslie House
48 Murray St
Perth 6000
Phone: (08) 9224-2140
Fax: (08) 9224 8009
email: [email protected]
http://myprofile.cos.com/mccaul
http://www.researcherid.com/rid/B-8751-2008
______________________________________________
Epidemiology is so beautiful and provides such an important perspective
on human life and death,
but an incredible amount of rubbish is published. Richard Peto (2007)
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Rike
Sent: Monday, 16 March 2009 12:01 PM
To: statalist
Subject: st: twoway scatter returns "unmatched quote"
Dear Listers,
I'm running the following code:
twoway scatter ratio month, by(status) c(l) xlabel(1(1)12)
twoway scatter ratio1 ratio2 ratio3 ratio4 month, by (status)
connect(l l l l) xlabel(1(1)12)
where status is a dummy. Stata returns an r(198) error, and it
happened when I added the by-option. I would also like to use
by(status, total) later on. Any suggestions? Thanks in advance.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/