check_prior_supported: Check that the distribution specified for a given parameter...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Used internally, in prep_prior_list. Checks that the prior distribution specified for a particular cline parameter is currently supported.

Usage

1

Arguments

parameter

The parameter for which a prior distribution is specified, as a character string.

distribution

The prior distribution for that parameter, as a character string.

Value

TRUE/FALSE: is the distribution supported for that parameter?

Examples

1
2
3
4
5
6
7
## Not run: 
check_prior_supported("center", "normal") # returns T
check_prior_supported("center", "beta") # returns F
check_prior_supported("pmin", "beta") # returns T
check_prior_supported("deltaL", "normal") # returns F

## End(Not run)

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