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

Re: st: Initial values using -ml-


From   "Renzo Comolli" <[email protected]>
To   <[email protected]>
Subject   Re: st: Initial values using -ml-
Date   Sat, 20 Sep 2003 02:46:29 -0400

Answer to http://www.stata.com/statalist/archive/2003-09/msg00422.html


Hi Kat,

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
theta10

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
2nd edition 
Authors: William Gould, Jeffrey Pitblado, William Sribney 
Publisher: Stata Press 
Copyright:  2003 
ISBN: 1-881228-83-5 
Pages:  289; paperback 
Price: $42.00 
http://www.stata.com/bookstore/mle.html

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.

Best,
Renzo


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