bg__fit_gamma: Fit Gamma Distribution

Description Usage Arguments Details Value Examples

View source: R/Simulations_Functions.R

Description

Fits the parameters of a gamma distribution to a set of observations

Usage

1

Arguments

x

vector of observations to fit.

Details

scale = var(x)/mean(x) shape = mean(x)/scale

Value

list with two entries: shape and size.

Examples

1
2
# dat <- rgamma(100, 0.1, 1)
# params <- bg__fit_gamma(dat)

M3Drop documentation built on Nov. 8, 2020, 5:06 p.m.