On Wed, 22 Dec 2010, Sven Schreiber wrote:
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...
<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>
Thanks. There's now an improved error message for this sort of
case in CVS.
Allin