Uses Newton-Raphson to estimate the parameters of the Gompertz distribution.
Arguments
- x
a (non-empty) numeric vector of data values.
- na.rm
logical. Should missing values be removed?
- ...
reltolis the relative accuracy requested, defaults to.Machine$double.eps^0.25.iterlimis a positive integer specifying the maximum number of iterations to be performed before the program is terminated (defaults to100).
Value
mlgompertz returns an object of class univariateML.
This is a named numeric vector with maximum likelihood estimates for
a and b 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
Details
For some data sets the maximum likelihood estimator of b fails to exist
since the root of the profile maximum likelihood equation is non-positive.
The value 1e-06 is returned in this case, along with a warning.
For the density function of the Gompertz distribution see Gompertz.
References
Lenart, A. (2012). The Gompertz distribution and Maximum Likelihood Estimation of its parameters - a revision. MPIDR WORKING PAPER WP 2012-008. https://www.demogr.mpg.de/papers/working/wp-2012-008.pdf
See also
Gompertz for the Gompertz density.
