Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: Unbalanced parentheses in command when I'm not using any parentheses


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: Unbalanced parentheses in command when I'm not using any parentheses
Date   Wed, 6 Dec 2006 21:40:59 -0000

I think it's your variable labels: 

. sysuse auto

. clonevar weight2 = weight

. label var weight2 "funny[label"

. histogram weight2
(bin=38, start=1760, width=81.052632)
parentheses unbalanced

The single [ is causing Stata to misread.

Nick 
[email protected] 

Nick Cox
 
> Are both executable and ados -update-d? 
> 
> Does this happen if you try variables with no
> variable label?
> 
> Can you reproduce with the auto dataset?
 
Joe McCrary
  
> > I get a strange error message on a histogram command using Stata 9.2
> > on Windows X64:
> > 
> > . histogram mc2t0405
> > (bin=20, start=44.09, width=2.7955)
> > parentheses unbalanced
> > r(132);
> > 
> > However, I have no problem summarizing the same variable.
> > 
> > . summarize  mc2t0405, detail
> > 
> >        math % meeting and exceeding standards for all
> >               students [overall district standa
> > -------------------------------------------------------------
> >       Percentiles      Smallest
> >  1%        58.28          44.09
> >  5%        65.81          53.72
> > 10%        71.25          54.31       Obs                 436
> > 25%       81.455          55.38       Sum of Wgt.         436
> > 
> > 50%        89.87                      Mean           87.22103
> >                         Largest       Std. Dev.      10.67012
> > 75%        95.58            100
> > 90%        98.76            100       Variance       113.8515
> > 95%        99.88            100       Skewness      -1.049067
> > 99%          100            100       Kurtosis       3.645815
> > 
> > Has anyone seen this? It's happening for any variable I try to run a
> > histogram on.

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index