Statalist The Stata Listserver


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

st: ML estimation


From   "marcel spijkerman" <marcel_spijkerman@hotmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: ML estimation
Date   Sat, 29 Apr 2006 08:24:28 +0000

Dear stata-users,


I want to estimate by ML a model with two equations. The structure of the program is as follows:


program define hshazll2

version 8.2

args todo b lnf


tempvar I1 I2 h1 h2 sum1 sum2 ST1 ST2 last lnfi


mleval `I1' = `b'
mleval `I2' = `b' eq(2)

.....
.....
.....


end


When I call the program with the following line:

ml model d0 hshazll (I1: y1 = x1 x2) (I2: y2 = x3 x4)

and continue with a check:

ml check


I get the message "no varlist allowed"

In the MLE book by Gould I find similar examples that seem to work. What is wrong here?


Regards,

Marcel Spijkerman


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