Convert given prior to numeric format

prior_to_num(desc)

Arguments

desc

Prior description as a named list, containing fields

  • dist - Distribution name. Must be one of 'uniform', 'normal', 'student-t', 'gamma', 'inv-gamma', 'log-normal' (case-insensitive)

  • square - Is the prior for a square-transformed parameter.

Other list fields are interpreted as hyperparameters.

Value

a named list of parsed options