mle_gamma: Maximum Likelihood Estimator for gamma dist.

Description Usage Arguments Value Examples

Description

mle_gamma function will calculate mle estimate for the shape parameter "k" and the scale parameter "theta" by using given sample. Since there is no closed form of the mle for gamma disttribution, mle_gamma used uniroot function from stats package.

Usage

1
mle_gamma(sample_g)

Arguments

sample_g

the given sample

Value

A 2 by 1 vector

Examples

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

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