Statalist The Stata Listserver

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

RE: st: nonlinear constraints

From   Richard Williams <>
Subject   RE: st: nonlinear constraints
Date   Wed, 14 Feb 2007 19:21:53 -0500

At 07:57 AM 2/14/2007, Maarten buis wrote:
2) I tend to trust the numerical properties of Stata functions more
then my own renderings of those functions.
Generally a good idea but not always.  The ml routine for my oglm
program was having a terrible time converging when I used the
invcloglog function.  I substituted the equivalent longer version of
the code and then it zoomed.  I've found in other contexts that
seemingly innocuous changes in the code will occasionally make big
changes in how well the program functions.  I often have no idea why
- maybe I've even uncovered some wildly esoteric bug - but I think it
is easier for me to make minor changes in my routines than to ask
Stata to rewrite theirs.

In the case of the code we were talking about earlier, not using
double precision was a clear and documented violation of recommended
programming practice (although unless you've read through Stata's ML
book, it doesn't surprise me that somebody would make that mistake).

Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX:    (574)288-4373
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW (personal):
WWW (department):

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index