I have $Y$ measurements per several Subjects and I'm studying impact of factor on $Y$ measurements. I've fit a lognormal mixed model with a random interaction, but I'm finding autoregressive dependence on residuals. However, some exploration suggests different temporal dependence per subject.
Can lme()
incorporate different autoregressive dependence by subject? That is, can lme()
implement a different AR order per subject?
I could do this fairly easily by dividing the residuals by subject and using the function ar()
. But I'm hoping there's a more cohesive alternative in R.