Generates a plot of the Gamma distribution with user specified parameters.
Arguments
- stat
a statistic to obtain the probability from. When using the "bounded" condition, you must supply the parameter as
stat = c(lower_bound, upper_bound). Otherwise, a simplestat = desired_pointwill suffice.- alpha
alphais considered to be shape by R's implementation of the gamma distribution.alphamust be greater than 0.- theta
thetais considered to be rate by R's implementation of the gamma distribution.thetamust be greater than 0.- section
Select how you want the statistic(s) evaluated via
section=either"lower","bounded","upper", or"tails".
Examples
# Evaluate lower tail.
visualize.gamma(stat = 1, alpha = 3, theta = 1, section = "lower")
# Evaluate bounded section.
visualize.gamma(stat = c(0.75,1), alpha = 3, theta = 1, section = "bounded")
# Evaluate upper tail.
visualize.gamma(stat = 1, alpha = 3, theta = 1, section = "upper")