Learn R Programming

varian (version 0.2.2)

gamma_params: Estimate the parameters for a Gamma distribution

Description

This is a simple function to estimate what the parameters for a Gamma distribution would be from a data vector. It is used internally to generate start values.

Usage

gamma_params(x)

Arguments

x
a data vector to operate on

Value

a list of the shape (alpha) and rate (beta) parameters and the mean and variance