check_valid: takes simple mathematical R expressions and determines...

Description Usage Arguments Value

View source: R/stan_utils.R

Description

takes simple mathematical R expressions and determines whether they can be parsed into stan code

Usage

1
check_valid(exprn, max_params, max_dep)

Arguments

exprn

the expression to parse

max_params

the number of parameters in the model, which determines the maximum parameter index that can be referenced in the expression

max_dep

the number of dependent variables in the model, which determines the amximum dependent variables index that can be referenced in the model

Value

Nothing if the expression is valid. Otherwise an exception is thrown.


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