num_deriv | R Documentation |
The function calculates the numerical derivate of an objective function using central difference. It is a relatively quick way to obtain the score contribution of each observation when the optimizer requires a single value.
num_deriv(param, log_lik, N, eps)
param |
A vector of parameters |
log_lik |
The log-likelihood function |
N |
The number of observations, e.g. individuals |
eps |
The precision level |
A matrix with rows equal to N and columns equal to the number of parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.