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

Re: st: maximum likelihood


From   Hung-Jen Wang <hjwang@econ.sinica.edu.tw>
To   "Jisheng.Cui@csiro.au" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: maximum likelihood
Date   Mon, 3 Nov 2003 13:26:30 +0800

Monday, November 3, 2003, 1:18:14 PM, Jisheng.Cui@csiro.au 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/



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