Am 22.12.2010 13:50, schrieb Allin Cottrell:
On Tue, 21 Dec 2010, Sven Schreiber wrote:
> I just tried to do NLS w/o initializing the parameters -- the error
> message was not informative ("wrong data type"). If I use
"catch", I get
> an even stranger message: "no regression function is given".
Sample script, please.
I've tried modifying/breaking the file ects_nls.inp, supplied with
gretl, in two different ways:
* Remove the definition of the parameter "alpha" altogether --
Error message: The symbol 'alpha' is undefined
* Give a bare declaration of alpha, no initialization --
Error message: Data error
<script>
open denmark
#c_1 = 0
#c_2 = 0
#c_3 = 1
nls LRM = c_1 + c_2 * (IBO-c_3*LRY)^2
deriv c_1 = 1
deriv c_2 = (IBO-c_3*LRY)^2
deriv c_3 = -2*c_2*(IBO-c_3*LRY)
end nls
</script>
However, maybe it's just a translation issue, I was re-translating back
from German... but "wrong data type" is definitely the right re-translation.
-sven