cor_arma class, representing 
an autoregression-moving average correlation structure of order (p, q).
cor_arma(formula = ~1, p = 0, q = 0, r = 0, cov = FALSE)formula, the correlation structure 
is assumed to apply only to observations within the same grouping level; 
observations with different grouping levels are assumed to be uncorrelated. 
Defaults to ~ 1, which corresponds to using the order of the observations 
in the data as a covariate, and no groups.FALSE (the default) a regression formulation
is used that is considerably faster and allows for ARMA effects 
of order higher than 1 but cannot handle user defined standard errors.cor_arma, representing an 
  autoregression-moving-average correlation structure.
r in the
  cor_arma and cor_arr functions.
cor_ar cor_ma
  cor_arr
cor_arma(~visit|patient, p = 2, q = 2)
Run the code above in your browser using DataLab