[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Initial values using -ml-
Answer to http://www.stata.com/statalist/archive/2003-09/msg00422.html
I just only skimmed through your program.
I can spot a problem.
You are not allowed to write
args lnf B0 B0race1 B0race2 B1 B1race1 B1race2 B2 B2race1 B2race2 sigma
You must write
. args theta1 theta2 theta 3 theta4 theta5 theta6 theta7 theta8 theta9
I also find strange that you donít have anything like
if $ML_y1==1 /* 1 is just an example could also be if $ML_y1==269842 */
but I am not really sure what you are doing.
All in all, I suggest
Title: Maximum Likelihood Estimation with Stata
Authors: William Gould, Jeffrey Pitblado, William Sribney
Publisher: Stata Press
Pages: 289; paperback
I had been blocked for 3 weeks with my first -ml- program, then I read (the
first edition) of this book, and it was trivial to solve my problem. I was
just doing it all wrong.
* For searches and help try: