Statalist


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

Re: st: several gr hbar but wants bar of same size


From   "b. water" <barleywater@hotmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: several gr hbar but wants bar of same size
Date   Tue, 21 Aug 2007 16:01:28 +0000

scott, thank you again for your reply.

i think there might be at most 3 more categories to come, so should be safe from the max 26 categories.

i do'd your do-file but got these:

. levelsof time,local(levels)
unrecognized command: levelsof
r(199);

end of do-file
r(199);

so i changed the levelsof to levels, which allowed the do-file to continue until:

. foreach l of local levels {
2. count if time == "`l'"
3. if r(N) !=26 {
4. local size = ((26-2)/r(N))*2.5
5. }
6. else {
7. local size = 1
8. }
9. disp "`size'"
10.
. gr hbar noof if timetest=="`l'", over(test, sort(pos) gap(*`size')
11. label(labsize(*.65))) ///

 ytitle("No. of studies")  ysc(r(0 35)) ylab(0 (5) 35) ///
 name(gr_`l',replace)
12. local name "`name' gr_`l'"
13. }
13
4.615384615384616
parentheses do not balance
r(198);

end of do-file
r(198);

all the brackets () and {} included seems to be accounted for unless of course the error message alluded/refers to something else.

would appreciate your further advice on this.

regards,
bw

_________________________________________________________________
Learn.Laugh.Share. Reallivemoms is right place! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us

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