bg__fit_gamma {M3Drop} | R 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)

[Package M3Drop version 1.14.0 Index]