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

st: MLE question

From   "Lionel Page" <>
To   "STATA list" <>
Subject   st: MLE question
Date   Wed, 26 May 2004 22:00:10 +0200

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


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



*   For searches and help try:

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