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

Re: st: Max likelihood programing and sub-routines


From   "Erik �. S�rensen" <[email protected]>
To   [email protected]
Subject   Re: st: Max likelihood programing and sub-routines
Date   Mon, 27 Jan 2003 17:55:59 -0500

On mandag, jan 27, 2003, at 17:31 America/Montreal, Hoetker, Glenn wrote:


Yet from the documentation and various examples, defining palogit at the bottom of the program would appear to be a valid means of defining a sub-routine. What am I doing wrong? Do I need to have palogit defined as a separate ado file (I really hope not for ease of distribution)?
But I think the documentation mentions (it used to at least) that if the subroutine is to be called from outside the current ado file, it must also be a separate file. I think you can see that heckman is implemented this way in the ado/base hierarchy. The problem is that it is "ml" that is calling your palogit, not your complogit. Since "ml" is a separete program, it needs to be able to finde palogit, which has to be in a separate file.

Best regards,
Erik

--
Erik �. S�rensen, <http://www.geocities.com/erik_oiolf/>.
phd student (economics), Norwegian School of Economics.
currently visiting Queen's University, Kingston, Ontario.

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