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

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

jaredo/mhsmm documentation built on Dec. 6, 2019, 11:07 a.m.