Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: error: xtile2 & Stata 12


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: error: xtile2 & Stata 12
Date   Thu, 15 Dec 2011 17:26:20 +0000

Another way to fix it is just to change the line

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

to

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

Again, a guess.

Nick

On Thu, Dec 15, 2011 at 5:18 PM, Nick Cox <[email protected]> wrote:
> -xtile2- is from SSC, as you are asked to explain.
>
> The short answer is evidently No. But my guess is that you can fix
> this program by inserting on a separate line
>
> version 7
>
> after the line
>
> program define xtile2
>
> The problem, I guess, is that the syntax in
>
> if "`nquantiles'"!=""{local nq "n(`nquantiles')"}
>
> is only allowed under version control, and -xtile2- omits a -version-
> statement, which you should supply.
>
> If this guess is wrong, you should naturally say so.
>
> Nick
>
> On Thu, Dec 15, 2011 at 4:56 PM, Andrea Bennett <[email protected]> wrote:
>
>> Does there exist an alternative for xtile2 that is
>> running under Stata 12? I always get the program error:
>> matching close brace not found, r(198).
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index