mom_gamma: Method of Moments Estimator for gamma dist.

Description Usage Arguments Value Examples

Description

mom_gamma function will calculate mom estimate for the shape parameter "k" and the scale parameter "theta" by using given sample.

Usage

1
mom_gamma(sample_g)

Arguments

sample_g

the given sample to calculate the estimate of the parameters.

Value

A 2 by 1 vector containing estimate of parameters k and theta: c(k, theta)

Examples

1
2
 my_sample <- rgamma(50, shape=2, scale=3)
 mom_gamma(my_sample)

petershan1119/paretopractice documentation built on May 31, 2019, 12:12 p.m.