Skip to content
Prev 206942 / 398503 Next

Error meaning

Roslina Zakaria wrote:
I agree with David. 
The formula for f4 is surely incorrect.

Furthermore:

1. what is the newt package you mention. I can't find it on CRAN.

2. A solution of your system is pars = [ 0, anything, anything, anything ]
   (if pars[1] == 0 then all f-values will also be 0 regardless of values
for pars[2:4])
    There are more solutions to your system (try pars = c(-1 , 0, 0, 0)).

3. The jacobian you generate is incorrect

4. I tried to solve your system with the correction mentioned above with my
package nleqlsv.
   I have to change the return value of your function newton.input2 to only
return fval.

   Using Broyden and a numerical jacobian. As far as I can see, this
confirms the point I made in item 2.
pars[1] = 0 with arbitrary values in pars[2], pars[3], pars[4] is a
solution.


Berend