Estimate the parameters (alpha and beta) of the Gamma distribution using
maximum likelihood.
Usage
mle_gamma(data, start = c(1, 1), vcov = FALSE)
Arguments
data
the data vector assumed to be generated from the Gamma
distribution
start
the initial values for the parameters of the Gamma distribution
(passed to optim())
vcov
whether to return an approximate variance-covariance matrix of
the parameter vector
Value
A list with elements estimate (parameter estimates for alpha
and beta) and, if vcov = TRUE, vcov (the variance-covariance
matrix of the parameter vector).