newton | R Documentation |
The Newton-Raphson method use the gradient and the hessian of a function. For well behaved functions, it is extremely accurate.
newton(
fun,
coefs,
trace = 0,
direction = c("min", "max"),
tol = sqrt(.Machine$double.eps),
maxit = 500,
...
)
fun |
the function to optimize |
coefs |
a vector of starting values |
trace |
if positive or true, some information about the computation is printed |
direction |
either |
tol |
the tolerance |
maxit |
maximum number of iterations |
... |
further arguments, passed to fun |
a numeric vector, the parameters at the optimum of the function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.