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

RE: st: possible bug in Nlogit


From   "Bo Cutter" <[email protected]>
To   <[email protected]>
Subject   RE: st: possible bug in Nlogit
Date   Mon, 18 Aug 2003 19:37:39 -0700

That worked, thanks

W. Bowman Cutter
Assistant Professor/CE Specialist 
Department of Environmental Sciences
University of California
Riverside, CA 92521


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jeff
Pitblado, Stata Corp.
Sent: Monday, August 18, 2003 11:25 AM
To: [email protected]
Subject: Re: st: possible bug in Nlogit

Bo Cutter <[email protected]> asks about differences in -nlogit-
results
between a fully up-to-date Stata and one just off the installation CD:

> I have Stata 8 (SE) on the desktop and laptop.  The desktop version is
> recently updated (update all) including swapping the executable.  The
> notebook stata 8 is just what came off the CD.  I ran the exact same
> two-level Nlogit (7 nests, 43 choice) on both machines, with the
> maximization options d1 and difficult.  On the laptop it converges
> nicely to a LLF=-1810.  On the desktop there are no warning messages
but
> it converges to LLF=-1811 and several standard errors are missing.
The
> files are exactly the same on each machine (I copied the files from
> laptop to desktop and ran them without any changes to make sure).  Can
> anybody explain why there is this difference and tell me whether the
> convergence results on the laptop are trustworthy?

Prior to version 8.1, -nlogit- used the Newton-Raphson optimization
algorithm
("technique") when supplied with the -d1- option.

Now -nlogit- uses the BFGS algorithm (Broyden, Fletcher, Goldfarb, and
Shanno)
by default (with or without the -d1- option).  It appears that -nlogit-
is
having difficulty with BFGS and Bo's data.

Bo can use the -technique(nr)- option to get -nlogit- to use the
Newton-Raphson algorithm instead of BFGS.

P.S.  The -d1- option of -nlogit- has no effect if your Stata is
up-to-date,
it has be superseded by the new -technique()- option.  It's only
effective
under version control.

--Jeff
[email protected]
*
*   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/

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