check_prior_specification: Check that the distribution specified has the right number of...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Used internally, in prep_prior_list.

Usage

1

Arguments

distribution

the prior distribution, as a character string.

string

the string specifiying the parameter values, parsed from the prior_config file.

Value

TRUE/FALSE: is the prior specified correctly?

Examples

1
2
3
4
5
6
## Not run: 
check_prior_specification("normal", "normal(32,45)") # returns T
check_prior_specification("uniform", "uniform(32)") # returns F
check_prior_specification("exponential", "exponential(0.5)") # returns T

## End(Not run)

tjthurman/BAHZ documentation built on May 30, 2020, 8:28 a.m.