sim.gamma: Calculate the probability of a Gamma distributed random...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/hmob_funcs.R

Description

A function that calcualtes the probability of random variable x according to a Gamma probability distribution with provided shape and rate parameters.

Usage

1
sim.gamma(x, shape, rate)

Arguments

mu

the desired mean of the Gamma distribution

sigma

the desired standard deviation of the Gamma distribution

Value

a named numeric vector giving the shape and rate parameters of the Gamma distribution

Author(s)

John Giles

See Also

Other random number generators: get.gamma.params()

Examples

1
2
3
plot(sim.gamma(1:20, shape=1, rate=0.5))

plot(sim.gamma(1:100, shape=3, rate=0.05))

gilesjohnr/hmob documentation built on Aug. 8, 2020, 1:26 a.m.