[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: parentheses don't balance?
Christopher W. Ryan
> Stata 8 on Win98, freshly updated.
> The following command was generated by using the overlaid
> twoway graph dialogue
> box, using the sysuse auto data. It yielded an error
> message: "parentheses do
> not balance"
> I count 21 parentheses in each direction, ie 21 pairs.
> Am I missing something?
> And how could a command generated by a dialogue box (that
> is, by Stata itself)
> have an error in the parentheses? I didn't type them in.
> Must mean there is
> something wrong with the way the dialogue box works?
> twoway (scatter mpg weight if foreign==0, msymbol(square)
> mcolor("255 0 0") mlabel(rep78)) (scatter mpg weight if
> foreign==1, msymbol(x)
> mcolor("0 0 255") mlabel(rep78)), ytitle(miles per gallon,
> color("0 0 128"))
> xtitle(weight, color("0 0 128")) title(Mileage for Weight,
> subtitle(By country of origin, size(small)) caption(Stata
> fictional data)
> note(February 2003) legend(on colfirst order(1 "domestic 2
I think that you are getting the wrong error message.
Be that as it may, Stata is confused by what you typed.
The use of a dialog box is, I guess, not the point here.
Try binding your -title()- strings in " ".
Otherwise how is Stata to distinguish a comma within
a title from a comma separating a title from suboptions?
Other examples of missing " also need to be fixed.
e.g. "domestic should be "domestic".
* For searches and help try: