exp_to_stan: takes simple mathematical R expressions and turns them into a...

Description Usage Arguments Value

View source: R/stan_utils.R

Description

takes simple mathematical R expressions and turns them into a specific type of Stan code to fill in the template

Usage

1
exp_to_stan(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

A string with the Stan code derived from the R expressions


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