I am setting up a LME model with the following structure in R, using the package nlme:
model <- lme(y ~ x, random = ~ 1 | group, data = data, correlation = corARMA(form = ~ x | group, p=1, q=1)
Comparing AIC values, this model seems to compare better to a model without autocorrelated residuals. But how do I check my model assumptions regarding the ARMA model? Most importantly, how do I check whether the residuals of ARMA model are not correlated anymore?