Statalist


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

RE: st: Stata's ml sticks


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: Stata's ml sticks
Date   Wed, 28 Jan 2009 18:34:24 -0000

-ridder- (STB) declares version 3.1. 

Sergiy is correct about global names. 

This is documented. The on-line help for -version- spells it out: 

    If you set version to 6.0 or less

        1.  macro substitution is made on the basis of the first
            seven (local) or eight (global) characters of the name;
            `thisthatwhat' is the same as `thistha'

I've not tried it but my guess is that setting -ridder- to -version 7-
might be enough to fix this. 

But Roger Newson wrote a Mata routine for Ridders' algorithm that I
think was written before Stata 10. That is surely the thing to use. 

Nick 
[email protected] 

Sergiy Radyakin

One problem that I've noticed with -ridder- is that it does not
understand global names longer than 8 symbols, e.g. if my F() returns
the result in global test_res, ridder F X returns macro test_res =
-0.01 from 0 to 0.2 works fine, but if F() returns the result in
global test_res2, then ridder F X returns macro test_res = -0.01 from
0 to 0.2 comes to an error because it evaluates both F(LEFT)=0 and
F(RIGHT)=0. Perhaps it's a limitation of the older Stata due to
version?


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