The maximum likelihood estimate of shapelog and ratelog are calculated
by calling mlgamma on the transformed data.
mllgamma(x, na.rm = FALSE, rel.tol = .Machine$double.eps^0.25, iterlim = 100)
| x | a (non-empty) numeric vector of data values. |
|---|---|
| na.rm | logical. Should missing values be removed? |
| rel.tol | Relative accuracy; passed to |
| iterlim | A positive integer specifying the maximum number of
iterations to be performed before the program is terminated. Passed to
|
mllgamma returns an object of class univariateML. This
is a named numeric vector with maximum likelihood estimates for shapelog and ratelog and the following attributes:
modelThe name of the model.
densityThe density associated with the estimates.
logLikThe loglikelihood at the maximum.
supportThe support of the density.
nThe number of observations.
callThe call as captured my match.call
For the density function of the log normal distribution see Loggamma.
Hogg, R. V. and Klugman, S. A. (1984), Loss Distributions, Wiley.
Dutang, C., Goulet, V., & Pigeon, M. (2008). actuar: An R package for actuarial science. Journal of Statistical Software, 25(7), 1-37.
Loggamma for the log normal density.
mllgamma(precip)#> Maximum likelihood estimates for the Loggamma model #> shapelog ratelog #> 35.90 10.43