Skip to contents

Utility function for returning an initial value per distribution type.

Usage

.distribution_init(x, par)

Arguments

x

Integer vector of recognised distributions.

  • 1 - uniform

  • 2 - beta

  • 3 - normal

  • 4 - log-normal

  • 5 - logit-normal

  • 6 - gamma

  • 7 - weibull

par

two-column matrix or data frame containing the parameters for each value of x.

Value

Returns a vector of initial values.