Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: function evaluator program syntax error


From   Carmen Fillat <cfillat@unizar.es>
To   statalist@hsphsun2.harvard.edu
Subject   st: function evaluator program syntax error
Date   Fri, 22 Jul 2011 17:30:39 +0200

Dear colleagues,
I am trying to estimate by using non linear squares (nl) a long equation. So i have to use the Function Evaluator Program before nl.

I follow the help menu but I get the message
"nlfijos5 returned 198
verify that nlfijos5 is a	function	evaluator program"

Sure i have a syntax error I do not see..but I tried everything and i cannot find it. I sum up what i do in case someone can tell me what the mistake might be. Probably it is at the beginning of the program. Thanks all.

--
program nlfijos5
	syntax varlist (min=1 max=116) if  , at(name)
         local gtotalimports: word 1 of `varlist'
(here the rest of 116 variables in the equation, because of fixed effects and time dummies)
...
// Retrieve parameters out of at
      tempname  a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 ...
      scalar `a2' = `at'[1,1]
*...(all parameters i have)
//Some temporary variables
	tempvar time  fijos eq
	generate double `time' =  `a2' * `dy2' + ...
....(my temporary equations and the equation to be estimated)...
end

nl fijos5 @ y x1 x2....variables, parameters and initial values
---





*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index