new_prior_dist: Creates a new 'prior_dist' object

Description Usage Arguments Value

View source: R/stan_utils.R

Description

Creates a new prior_dist object

Usage

1
new_prior_dist(name, params, bounds = NA)

Arguments

name

a string with the name of the distribution (e.g. 'normal'). Must match a distribution in ALLOWED_DISTRIBUTIONS list

params

parameters for the prior distribution. Should match the number and constrains imposed by the distribution name.

bounds

a lower and upper bound for the parameter. This restricts the range in which sampling occurs. If left as NA, no bounds are imposed

Value

a new prior_dist object


jproney/bpinference documentation built on April 19, 2021, 2:18 a.m.