Description Usage Arguments Value Examples
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 distribution, mle_gamma used uniroot function from stats package.
1 | mle_gamma(sample_g)
|
sample_g |
the given sample to calculate the estimate of the parameters. |
A 2 by 1 vector containing estimate of parameters k and theta: c(k_hat, theta_hat)
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.