This is a pretty big function. It includes unpacking sigma(), ar(), etc.
unpack_rhs(form_rhs, i, family, data, last_segment)A one-row tibble with three columns for each of ct. sigma, ar, and ma:
_int: NA or a one-row tibble describing the intercept.
_slope: NA or a tibble with a row for each slope term.
_code: NA or a char with the JAGS/R code to implement the slope.
A character representation of a formula
The segment number (integer)
An mcpfamily object returned by mcpfamily().
A data.frame or tibble
The last row in the segment table, made in get_segment_table()
Jonas Kristoffer Lindeløv jonas@lindeloev.dk