Statalist The Stata Listserver


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

RE: st: RE: Unknown function () error.


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: Unknown function () error.
Date   Wed, 30 Aug 2006 16:05:26 +0100

I have been using Stata almost every day for 15 years 
and have never encountered any # operator. (You can use 
"#" as a literal text character, and there are #delimit 
and #review meta-commands, all irrelevant here.) More to 
the point, what do you understand it to do? 

Nick 
n.j.cox@durham.ac.uk 

Vimalanand S. Prabhu
 
> Dear Nick,
> 
> If I use *, then I am getting the results for the poisson 
> model and not 
> nbreg. I had actually got the model working but somehow did 
> not save my 
> results. I though that I had used # operator then, but I am not sure.
 
Nick Cox wrote:

> > I see # characters in the code. I may be missing
> > something but I believe that they are both meaningless
> > and illegal in this context. 
> > 
> > You presumably want some other operator. 
> > 
> > Nick 
> > n.j.cox@durham.ac.uk 
> > 
> > Vimalanand S. Prabhu
> > 
> >>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

*
*   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