mle_gamma: MLE for the Gamma distribution

View source: R/demo1-GEN.R

mle_gammaR Documentation

MLE for the Gamma distribution

Description

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).


yihui/rlp documentation built on Feb. 28, 2023, 1:35 p.m.