pdf_gamma: Evaluate a gamma pdf

View source: R/calcGammaPDFs.R

pdf_gammaR Documentation

Evaluate a gamma pdf

Description

Function to evaluate a gamma pdf.

Usage

pdf_gamma(x, alpha, theta)

Arguments

x
  • vector of values at which to evaluate the pdf

alpha
  • the gamma pdf shape parameter

theta
  • the gamma pdf scale parameter

Details

The underlying gamma pdf (pdf_gamma) is defined as

pdf(x) = \frac{1}{\Gamma(\alpha) \theta^\alpha} x^(\alpha-1) e^{-\frac{x}{\theta}}

where \alpha (the shape parameter) is related to the mean \mu by

\alpha = \frac{\mu}{\theta}

Value

vector of values of the gamma pdf evaluated at x


wStockhausen/tcsamFunctions documentation built on Jan. 28, 2024, 9:01 a.m.