Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: error: xtile2 & Stata 12


From   Andrea Bennett <mac.stata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: error: xtile2 & Stata 12
Date   Thu, 15 Dec 2011 21:33:32 +0100

Thanks for the hint!

However, I found something more convenient: egenmore

best, Andrea

On Dec 15, 2011, at 18:26 , Nick Cox wrote:

> 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 <njcoxstata@gmail.com> 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 <mac.stata@gmail.com> 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/


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