Statalist


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

Re: st: ml within ml?


From   jpitblado@stata.com (Jeff Pitblado, StataCorp LP)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: ml within ml?
Date   Mon, 08 Oct 2007 09:00:40 -0500

Timothy Dang <tpondang@gmail.com> is trying to use an -ml- based estimation
comment within another -ml- likelihood evaluator program:

> I'm trying to use -dirifit- within a d0 -ml- evaluation program. At
> the end of the function when I try to use -mlsum-, I get the message
> "ml model not found".
> 
> I'm thinking that using -dirifit- has made Stata forget about the
> original ml model which called the evaluator in the first place? Does
> this sound correct? And if so, is there a way to recall that
> information?

Timothy should look into the -ml hold- and -ml unhold- commands.  They allow
users the ability to call -ml- recursively.

The help file for -ml hold- provides an example using these tools for fitting
the negative binomial distribution using the method of profile likelihoods.

--Jeff
jpitblado@stata.com
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index