Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

TranslateFormula

Translate R Formula to JAGS


Description

While most functions available in JAGS have equivalents in R, they don't always use the exact same names. R formulas are converted to character strings, function names translated, and the corresponding JAGS formula is returned.

Usage

rToJags(f)

Arguments

f

R formula object

Details

Only a limited subset of R functions are recognized here, but no attempt is made to restrict the user to functions that will be recognized by JAGS. For now, the user should remain aware of what functions are available in JAGS and only use the corresponding functions in R. The JAGS functions may be referenced in the JAGS user manual (see References). The corresponding R functions are listed in the jagsFunctions data set (use data(jagsFunctions) to review).

Author(s)

Jarrod Dalton and Benjamin Nutter

References


HydeNet

Hybrid Bayesian Networks Using R and JAGS

v0.10.11
MIT + file LICENSE
Authors
Jarrod E. Dalton <daltonj@ccf.org> and Benjamin Nutter <benjamin.nutter@gmail.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.