numderiv {mixstock} | R Documentation |
takes the numeric derivative (gradient) of a function by finite differencing
numderiv(p, fn, eps = 1e-05, ...)
p |
parameter vector |
fn |
function |
eps |
finite-difference increment |
... |
other arguments to fn |
numeric vector representing the approximate gradient of the function with respect to the parameters