Statalist The Stata Listserver


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

st: Re: ML estimation


From   "Rodrigo A. Alfaro" <ralfaro76@hotmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: ML estimation
Date   Sat, 29 Apr 2006 08:48:07 -0400

Dear Marcel,

Hard to see the problem.

(1) change line mleval `I2' = `b' eq(2)
for mleval `I2' = `b', eq(2)

(2) do you have an open dataset when you type
-ml check-?

(3) if you type -set trace- after -ml model- and run it
you will see every step in the process.

Good luck, Rodrigo.

----- Original Message ----- 
From: "marcel spijkerman" <marcel_spijkerman@hotmail.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Saturday, April 29, 2006 4:24 AM
Subject: st: ML estimation


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