make_numeric_moment_function {aghq} | R Documentation |
Compute numeric moments
Description
Create a function suitable for computation of numeric moments. This function is
used internally by compute_moment
when the user chooses nn
, and is
unlikely to need to be called by a user directly.
Usage
make_numeric_moment_function(nn, j, quad = NULL, centre = 0, shift = NULL, ...)
get_shift(gg)
Arguments
nn |
Order of moment to be computed, see |
j |
Numeric, positive integer, index of parameter vector to compute the numeric moment for. |
quad |
Optional, object of class |
centre |
Numeric scalar, added to |
shift |
Numeric scalar, amount by which to shift |
... |
Not used. |
gg |
Object of class |
Value
Object of class aghqmoment
, see make_moment_function