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

Re: st: xtile2 error


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: xtile2 error
Date   Mon, 05 Apr 2004 08:41:29 -0500

At 03:20 PM 4/5/2004 +0200, Xavi Barber wrote:
Dear statalisters:

        I use a xtile2 command:
                xtile2 ttt=lnkcal  if edad3c<998, nq(4) by(sexo1 edad3c)

        bur stata say:
                program error:  matching close brace not found

        Can You help me?
The program is missing a version command, and as a result syntax changes in Stata 8 screw it up. Edit xtile2.ado and add the following immediately after the program define line:

version 7

Either that, or change this line to be Stata 8 compliant:

if "`nquantiles'"!=""{local nq "n(`nquantiles')"}

I think you change it to

if "`nquantiles'"!=""{
local nq "n(`nquantiles')"
}

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