score_hessian | R Documentation |
Compute column vector of first derivatives and matrix of second derivatives of univariate function.
score(expr, vars, simplify = TRUE)
hessian(expr, vars, simplify = TRUE)
expr |
'caracas expression'. |
vars |
variables to take derivative with respect to. |
simplify |
Try to simplify result using |
jacobian()
, der()
if (has_sympy()) {
def_sym(b0, b1, x, x0)
f <- b0 / (1 + exp(b1*(x-x0)))
S <- score(f, c(b0, b1))
S
H <- hessian(f, c(b0, b1))
H
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.