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" <>
To   <>
Subject   Re: st: Initial values using -ml-
Date   Sat, 20 Sep 2003 02:46:29 -0400

Answer to

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

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

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:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index