powered by
Define a family of distributions.
def_dist(dist, ...)
List with components specified in the parameters.
distribution type. Distributions currently supported are:
norm = normal,
norm
lnorm = log-normal,
lnorm
gamma = Gamma,
gamma
unif = uniform
unif
a series of distribution parameters. Included should be the following:
mean distribution mean (only for dist = lnorm or gamma).
mean
dist
mean_sd standard deviation of the mean (only for dist = lnorm or gamma).
mean_sd
sd standard deviation (only for dist = lnorm or gamma).
sd
sd_sd standard deviation of the standard deviation (only for dist = lnorm or gamma).
sd_sd
min minimum value of the random variable modelled by this distribution (only for dist = unif).
min
max maximum value of the random variable modelled by this distribution.
max
d = def_dist( dist = "gamma", mean = 3.49, mean_sd = 0.1477, shape = 8.5, shape_sd = 1.8945, max = 8 ) print(d)
Run the code above in your browser using DataLab