gammafit: Parameter estimation for the Gamma distribution

Description Usage Arguments Value Author(s) References Examples

View source: R/hsmm_functions.R

Description

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

Usage

1
gammafit(x, wt = NULL)

Arguments

x

A vector of observations

wt

Optional set of weights

Value

shape

The shape parameter

scale

The scale parameter (equal to 1/rate)

Author(s)

Jared O'Connell [email protected]

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

1
  gammafit(rgamma(1000,shape=10,scale=13))

mhsmm documentation built on May 30, 2017, 3:26 a.m.