def_dist {ern}R Documentation

Define a family of distributions.

Description

Define a family of distributions.

Usage

def_dist(dist, ...)

Arguments

dist

distribution type. Distributions currently supported are:

  • norm = normal,

  • lnorm = log-normal,

  • gamma = Gamma,

  • unif = uniform

...

a series of distribution parameters. Included should be the following:

  • mean distribution mean (only for dist = lnorm or gamma).

  • mean_sd standard deviation of the mean (only for dist = lnorm or gamma).

  • sd standard deviation (only for dist = lnorm or gamma).

  • sd_sd standard deviation of the standard deviation (only for dist = lnorm or gamma).

  • min minimum value of the random variable modelled by this distribution (only for dist = unif).

  • max maximum value of the random variable modelled by this distribution.

Value

List with components specified in the parameters.

Examples

d = def_dist(
  dist     = "gamma",
  mean     = 3.49,
  mean_sd  = 0.1477,
  shape    = 8.5,
  shape_sd = 1.8945,
  max      = 8
)
print(d)


[Package ern version 2.0.0 Index]