bg__fit_gamma: Fit Gamma Distribution

View source: R/Simulations_Functions.R

bg__fit_gammaR Documentation

Fit Gamma Distribution

Description

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

Usage

	bg__fit_gamma(x)

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

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

tallulandrews/M3Drop documentation built on March 6, 2024, 1:49 a.m.