gammaMLE: Compute maximum likelihood estimate of shape and scale...

View source: R/utils_gamma.R

gammaMLER Documentation

Compute maximum likelihood estimate of shape and scale parameter in Gamma distribution.

Description

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.

Usage

gammaMLE(x, ur)

Arguments

x

a numeric vector of length n

ur

logical. If TRUE the rate parameter is returned. Otherwise the scale is returned.

Value

a vector of length two with shape and scale/rate.


gofedf documentation built on Oct. 1, 2023, 5:08 p.m.