Learn R Programming

mhsmm (version 0.4.21)

gammafit: Parameter estimation for the Gamma distribution

Description

Estimates parameters for the Gamma distribution using the Method of Maximum Likelihood, works with weighted data.

Usage

gammafit(x, wt = NULL)

Value

shape

The shape parameter

scale

The scale parameter (equal to 1/rate)

Arguments

x

A vector of observations

wt

Optional set of weights

Author

Jared O'Connell jaredoconnell@gmail.com

References

Choi, S. and Wette, R. (1969), Maximum likelihood estimation of the parameters of the gamma distribution and their bias, Technometrics, 11, 683-96-690.

Examples

Run this code
  gammafit(rgamma(1000,shape=10,scale=13))

Run the code above in your browser using DataLab