arma {brms}  R Documentation 
Set up an autoregressive moving average (ARMA) term of order (p, q) in brms. The function does not evaluate its arguments – it exists purely to help set up a model with ARMA terms.
arma(time = NA, gr = NA, p = 1, q = 1, cov = FALSE)
time 
An optional time variable specifying the time ordering of the observations. By default, the existing order of the observations in the data is used. 
gr 
An optional grouping variable. If specified, the correlation structure is assumed to apply only to observations within the same grouping level. 
p 
A nonnegative integer specifying the autoregressive (AR)
order of the ARMA structure. Default is 
q 
A nonnegative integer specifying the moving average (MA)
order of the ARMA structure. Default is 
cov 
A flag indicating whether ARMA effects should be estimated by
means of residual covariance matrices. This is currently only possible for
stationary ARMA effects of order 1. If the model family does not have
natural residuals, latent residuals are added automatically. If

An object of class 'arma_term'
, which is a list
of arguments to be interpreted by the formula
parsing functions of brms.
autocorterms
, ar
, ma
,
## Not run: data("LakeHuron") LakeHuron < as.data.frame(LakeHuron) fit < brm(x ~ arma(p = 2, q = 1), data = LakeHuron) summary(fit) ## End(Not run)