Skip to content
Prev 305935 / 398506 Next

Problem with Newton_Raphson

On 20-09-2012, at 13:46, Christopher Kelvin wrote:

            
Newton-Raphson? is not a method for optim.
Running your code given above gives an error message:

Error in sum(t) : invalid 'type' (closure) of argument

Where is object 't'?

Why are you defining function z within the rr loop? Only the last definition is given to optim.
Why use p[1] and p[2] explicitly in the calculation of log1 in the body of function z when you can use shape and scale defined in the lines before log1 <-.

Berend