| prep_deriv2_object | R Documentation |
Setting up the object (a named list) used by the deriv2 methods
for calculating score and hessian.
prep_deriv2_object(d, n, which, order)
d |
object of class distribution. |
n |
number of observations (length of score/Hessian vectors). |
which |
|
order |
defines the order of derivatives to be calculated and returned.
|
Named list with three elements. $which is a named list of length 2
containing a named character vector with the derivatives to be calculated for
both score and Hessian, or NULL if not required.
Similarely, $score and $hessian are NULL if no first or second derivative
is requested by the user. Else these two elements contain a named list with
empty numeric vectors of length n later on filled by the corresponding
C function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.