gammafit: Parameter estimation for the Gamma distribution

View source: R/hsmm_functions.R

gammafitR Documentation

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)

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

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

mhsmm documentation built on Aug. 23, 2023, 9:06 a.m.