Gets code for ARMA terms, resulting in a "resid_"
Developer note: Ensuring that this can be used in both simulate() and JAGS got quite messy with a lot of if-statements. It works but some refactoring may be good in the future.
get_ar_code(ar_order, family, is_R, xvar, yvar = NA)
ar_order |
Positive integer. The order of ARMA |
family |
An mcpfamily object |
is_R |
Bool. Is this R code (TRUE) or JAGS code (FALSE)? |
String with JAGS code for AR.
Jonas Kristoffer Lindeløv jonas@lindeloev.dk
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.