Monday, November 3, 2003, 1:18:14 PM, [email protected] wrote:
> I try to use the following example to estimate the maximum likelihood
> estimate, but I got the error message "varlist required". It occurs in
> "quitely replace = ln(norm(__000001)) ifdied==1" if I use the -set trace
> on- command.
> program myprobit_lf
> version 8.1
> args inf xb
> quietly replace `lnf' = ln(norm(`xb')) if $ML_y1==1
> quitely replace `lnf' = ln(norm(-`xb')) if $ML_y1==0
> end
It is because of a typo: Instead of
args inf xb
you should have
args lnf xb
. Hope it helps.
HJW
*
* 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/