gamma_params: Estimate the parameters for a Gamma distribution

View source: R/helpers.R

gamma_paramsR Documentation

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

Author(s)

Joshua F. Wiley <jwiley.psych@gmail.com>


ElkhartGroup/varian documentation built on March 20, 2023, 9:40 p.m.