Skip to contents

[Experimental] This is used for preprocessing before generating a dist_spec object from a given set of parameters and distribution

Usage

convert_to_natural(params, distribution)

Arguments

params

A numerical named parameter vector

distribution

Character; the distribution to use.

Value

A list with two elements, params_mean and params_sd, containing mean and sd of natural parameters.

Examples

if (FALSE) {
convert_to_natural(
  params = list(mean = 2, sd = 1, max = Inf),
  distribution = "gamma"
)
}