Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Unknown function () error.

From   "Vimalanand S. Prabhu" <>
Subject   st: Unknown function () error.
Date   Wed, 30 Aug 2006 10:35:10 -0400


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)
ml model lf nbreg2 (jdemh=price eff) ()
ml check
ml maximize


* For searches and help try:

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