mle_gamma: MLE for the Gamma distribution

Description Usage Arguments Value

View source: R/demo1-GEN.R

Description

Estimate the parameters (alpha and beta) of the Gamma distribution using maximum likelihood.

Usage

1
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 Sept. 8, 2018, 6:26 p.m.