MGFgamma | R Documentation |
Evaluate the moment generating function (MGF) of the gamma distribution or a derivative of the MGF
MGFgamma(x, rate, shape, deriv = 0)
x |
The value at which to evaluate the MGF |
rate |
The rate parameter value of the gamma distribution |
shape |
The shape parameter values of the gamma distribution |
deriv |
An integer, the number of derivatives of the MGF to apply |
The number resulting from the function evaluation
# MGF of a gamma distributions, evaluated at -0.1:
MGFgamma(-0.1, rate = 0.7, shape = 3)
# Second moment of the distribution (second derivative evaluated at zero):
MGFgamma(0, rate = 0.7, shape = 3, deriv = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.