prior_to_num: Convert given prior to numeric format

View source: R/utils-create_model-prior.R

prior_to_numR Documentation

Convert given prior to numeric format

Description

Convert given prior to numeric format

Usage

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


jtimonen/lgpr documentation built on Oct. 12, 2023, 11:13 p.m.