| |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Unknown function () error.
Watch the # - I think you want * .
Also, this isn't the likelihood function for a NB unless you do something more
with uu. As specified, since uu is a constant, it's a Poisson with an
additional constant (and hence not identified).
Partha
Vimalanand S. Prabhu wrote:
Hi
I am new to ml command. I am getting an error: Unknown function (),
when I run the following code for negative binomial count model. Is
there any obvious error in the code which I seem to miss out.
The L function is -exp(lambda.ui).(lambda.ui)^yi/(yi)!
program define nbreg2
args lnf theta uu
quietly replace `lnf' = -exp(`theta')#`uu' + $ML_y1#(`theta'+ln(`uu')) -
lnfact($ML_y1)
end
ml model lf nbreg2 (jdemh=price eff) ()
ml check
ml maximize
Thanks,
Prabhu
*
* 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/
--
Partha Deb
Department of Economics
Hunter College
ph: (212) 772-5435
fax: (212) 772-5398
http://urban.hunter.cuny.edu/~deb/
Emancipate yourselves from mental slavery
None but ourselves can free our minds.
- Bob Marley
*
* 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/