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

st: MLE question


From   "Lionel Page" <lpage@noos.fr>
To   "STATA list" <statalist@hsphsun2.harvard.edu>
Subject   st: MLE question
Date   Wed, 26 May 2004 22:00:10 +0200

Hi,
I've just begun with the maximum likelihood with Stata, and my programm is
not working. Does anybody could help me ?

Here is the program :
program define maxlik

version 6

args lnf theta1 theta2 theta3

quietly replace `lnf'=ln(binorm(-`theta1',-`theta2',`theta3')) if ML_y1==1

quietly replace `lnf'=ln(1-binorm(-`theta1',-`theta2',`theta3')) if ML_y1==0

end


I get the message "varlist required" just after my first quietly replace.

Thanks

Lionel


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