Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: RE: twoway scatter returns "unmatched quote"


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: twoway scatter returns "unmatched quote"
Date   Mon, 16 Mar 2009 11:21:26 -0000

No quotes are included in what you report here as typed. 

So, check out in turn 

1. Any unmatched quotes in the variable label of -status-. 

2. Any unmatched quotes in the value labels of -status- (if any). 

3. Any unmatched quotes in the values of -status- (if it is a string
variable). 

4. Repeat 1 for your other variables. 

My guess is #1.

Then remove the unmatched quote _or_ insert a matching quote and reissue
the -graph- command. 

Nick 
n.j.cox@durham.ac.uk 

Rike

I tried it without the space (I mistakenly put it back there when I
copied the code for the list) but I get the same error. Any other
ideas?

Kieran McCaul

> You have a space in the -by- option.
> -by (status)- should be -by(status)-

Rike

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



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index