Specify a temporal random effect that decomposes variation into separate scales: a smooth trend, an optional seasonal cycle, and a short-term component. Each scale uses its own prior, letting slow and fast dynamics be modelled jointly.
Arguments
- time_var
Single character string naming the time variable in the data.
- trend
Prior for the smooth long-term trend. One of
"rw2","rw1", or"none".- seasonal
Optional integer period (
>= 2) of a seasonal cycle, e.g.12for monthly data with an annual cycle.NULL(default) omits the seasonal component.- short_term
Prior for the short-term component. One of
"ar1","iid", or"none".- group_var
Optional character string naming a grouping variable for group-specific temporal effects.
Whether the effect is shared across processes in a multi-process model.
NULL(default) shares it;FALSEfits process-specific effects and emits a warning.
See also
temporal_rw1(), temporal_rw2(), temporal_ar1() for
single-scale temporal priors.