get_supported_gamma: Get parameters of gamma distribution from expected and...

Description Usage Arguments Details Value

Description

This function determines the parameters for a gamma distribution

Usage

1
get_supported_gamma(mu, bound, desired_support = 0.05, lower.tail = FALSE)

Arguments

mu

The expected value of x (see details)

bound

The desired maximum of the distribution

desired_support

The amount of probability mass to be more extreme than bound

lower.tail

A boolean that indicates whether we want to get the support on the upper or lower tail

Details

If x ~ Gamma(alpha, beta), then mu = E[x] and sigma^2 = Var(x)

Value

A gamma_dist object


convoyinc/abayes documentation built on May 12, 2019, 1:34 a.m.