Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: problem with function evaluator program in nl comand

From   Miguel Ampudia Fraile <>
To   statalist <>
Subject   st: problem with function evaluator program in nl comand
Date   Thu, 21 Mar 2013 12:00:46 +0100

Dear all,

I want to use a function evaluator program within the nl command to do
an estimation but I keep getting an error message saying to check
whether my program is a function evaluator program.
I have taken my program to the simplest case possible and I have
followed the examples in the help file step by step. And I keep
getting the same error. Any help would be much appreciated. Here is my

capture program drop nlweight4
program nlweight4

	version 11
	syntax varlist (min=2 max=2)[aw fw iw] if, at(name)
	local assetsinstock : word 1 of `varlist'
	local logincome : word 2 of `varlist'

	tempname A beta1
                scalar `A' = `at'[1,1]
	scalar `beta1' = `at'[1,2]

	replace `assetsinstock' = `A' +`beta1'*`logincome' `if'


And then I run:

nl weight4 @ assetsinstock logincome, {parameters(A beta1)} initial(A
1 beta1 1 )


*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index