Call get_formula_str for multiple ytypes and paste strings
Currently used to differentiate between the JAGS model (use all) and the fit$simulate model (do not include arma).
get_all_formulas(ST, prior, par_x, ytypes = c("ct", "sigma", "arma"))
ST |
Tibble. Returned by |
prior |
Named list. Names are parameter names (
|
par_x |
String (default: NULL). Only relevant if no segments contains slope (no hint at what x is). Set this, e.g., par_x = "time". |
ytypes |
A character vector of ytypes to including in model building |
A string with JAGS code.
Jonas Kristoffer Lindeløv jonas@lindeloev.dk
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.