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 on April 23, and its replacement, is already up and running.

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

Re: st: problems convering maximum likelihood in Stata 11

From   Maarten buis <>
Subject   Re: st: problems convering maximum likelihood in Stata 11
Date   Fri, 12 Mar 2010 08:14:57 +0000 (GMT)

--- On Thu, 11/3/10, Jon Schwabish <> wrote:
> In running a simple logit model
> (albeit on a very big data set) in Stata 11, my likelihood
> function won't converge; in running the same model on the
> same data set in Stata 10, the function converges in about 5
> iterations. 
> Is there something inherently different in Stata 11 about
> the likelihood process? I have tried adding all sorts of
> options in Stata 11 (nrtolerance, difficult, etc) all to
> little effect.

Are you using analytical second derivatives (i.e. using the
d2 method)? What changed between Stata 10 and 11 is that in
11 Stata by default assumes that your evaluator program 
returns the Hessian matrix rather than the negative Hessian
matrix in Stata < 11. Adding the -negh- option should 
solve that problem for Stata 11. If you want your program 
to work in Stata 10 and 11, you should instead add the 
-version 10- command at the top of the program that calls
-ml- (i.e. not the evaluator program, but the "main"

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen


*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index