Skip to contents

Get Stan code for a Prior

Usage

get_prior_string(object)

Arguments

object

Prior or list of Prior objects.

Value

A string containing the Stan code sampling from specified distribution.

Examples

psborrow2:::get_prior_string(normal_prior(0, 100))
#> normal(0, 100)