Checks for validity of values for use as normal distribution parameters.
Should a pair of numeric values, second value should be non-zero. Stops execution with an error.
check_normal_prior(values, parameter)
values
: Parameters for normal distribution.parameter
: Name of the parameter for which the prior is defined.Logical TRUE, if none of the tests fail
check_normal_prior(c(0, 1), "tau")
Useful links