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

st: parentheses don't balance?

From   "Christopher W. Ryan" <>
To   <>
Subject   st: parentheses don't balance?
Date   Fri, 7 Feb 2003 13:33:18 -0500

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) msize(medsmall) 
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, size(medium)) 
subtitle(By country of origin, size(small)) caption(Stata fictional data) 
note(February 2003) legend(on colfirst order(1 "domestic 2 "foreign"))

Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
and Wilson Family Practice Residency
40 Arch Street, Johnson City, NY  13790
Public key generated with PGP 602i available at
or via

"If you want to build a ship, don't drum up the men to gather wood, divide the 
work and give orders. Instead, teach them to yearn for the vast and endless 
sea."  [Antoine de St. Exupery]

*   For searches and help try:

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