Estimate the MLE of shape and scale parameters of the Gamma distribution using the Newton-Raphson method on the profile log-likelihood to estimate the shape parameter.
gammaMLE(x, ur)
a vector of length two with shape and scale/rate.
a numeric vector of length n
logical. If TRUE
the rate parameter is returned. Otherwise the scale is returned.